|
|
Opening a tab in firefox using javascript - Javascript
|
Views : 570
|
|
Tagged in : Javascript
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
You can use the following code to open a new blank/empty tab in javascript
var browser = top.document.getElementById("content");
browser.addTab("");
To open a tab with an url/website
var browser = top.document.getElementById("content");
browser.addTab("http://hiox.com");
To open a tab with an bring the focus to it
var browser = top.document.getElementById("content");
browser.selectedTab = browser.addTab("");
|
|
By rajesh, On - 2009-08-06 |
|
|
|