JS command for new tab

Post Reply
ocwil
Posts: 29
Joined: Sat Oct 10, 2009 6:59 pm

JS command for new tab

Post by ocwil » Wed Oct 28, 2009 9:45 pm

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:
Hannes, Tech Support

Re: JS command for new tab

Post by Hannes, Tech Support » Thu Oct 29, 2009 8:32 am

Thanks for sharing!
ocwil
Posts: 29
Joined: Sat Oct 10, 2009 6:59 pm

Re: JS command for new tab

Post by ocwil » Sat Oct 31, 2009 1:44 pm

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
Hannes, Tech Support

Re: JS command for new tab

Post by Hannes, Tech Support » Mon Nov 02, 2009 12:25 pm

Even better: we put it into a newly created subforum dedicated to Firefox/JavaScript Examples.
Post Reply