Page 1 of 1

JS command for new tab

Posted: Wed Oct 28, 2009 2:45 pm
by ocwil
hello

use this js command if you need a new tab in FF

since ff has scrambled up tab counter
this comes in really handy

Code: Select all
//this will open a empty tab and center to it so its like
in imacros:
tab open
tab= (the new tab)
url goto=url
in JS:
gBrowser.selectedTab = gBrowser.addTab("url");


this was posted some where else but i also post it here since it applies for FF
and so it's easyer to find

:fingerscrossed: hope it gets stickie :fingerscrossed:

Re: JS command for new tab

Posted: Thu Oct 29, 2009 1:32 am
by Hannes, Tech Support
Thanks for sharing!

Re: JS command for new tab

Posted: Sat Oct 31, 2009 6:44 am
by ocwil
shouldnt this be at top of page?
since it now just waters down the list...
OR
will you tell ppl about this when they ask

Re: JS command for new tab

Posted: Mon Nov 02, 2009 5:25 am
by Hannes, Tech Support
Even better: we put it into a newly created subforum dedicated to Firefox/JavaScript Examples.