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:
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:
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!
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:
Code:
javascript:(function(){
var obj={"link1":"http://google.com", "link2":"http://yahoo.com"};
for(key in obj){
var val=obj[key];
window.open(decodeURIComponent(val));
}
})();
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:
Code:
i18n-values: Missing value for "ntp4_intro_url"
Thanks so much for your assistance!