Register now and start sharing your code snippets.
-->
Opening a new tab with Firefox
JavaScript posted 7 months ago by christian
Note that this only works from a Firefox extension:
1 function openTab(url, focus) 2 { 3 var tab = getBrowser().addTab(url); 4 5 if(focus) 6 { 7 getBrowser().selectedTab = tab; 8 } 9 10 return tab; 11 } 12