By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,718 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,718 IT Pros & Developers. It's quick & easy.

Chrome Bookmark Not Working

P: 75
Hello,
I've put together the following javascript that can be dragged and dropped to the favorites/bookmarks bar in Chrome (or any browser) and then when you click on it, it opens the links in the variable object:
Expand|Select|Wrap|Line Numbers
  1. javascript:(function(){ 
  2. var obj={"link1":"http://google.com", "link2":"http://yahoo.com"};
  3. for(key in obj){
  4. var val=obj[key];
  5. window.open(decodeURIComponent(val));
  6. })();
The function seems to ordinarily work when there are other tabs open in Chrome. However, when I am on the "New Tab" tab in Chrome ( I am running on 15.0.874.106 ), the function does not seem to work. It simply does not open a page?

Could it be that there is a problem with calling window.open from the "New Tab" tab?

Additionally, when I check the console, I am getting this output:
Expand|Select|Wrap|Line Numbers
  1. i18n-values: Missing value for "ntp4_intro_url"
Does anyone have any idea what might be wrong with my code or have any further information regarding this message I'm receiving in Chrome?

Thanks so much for your assistance!
Nov 3 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.