Opening a tab in firefox using javascript - Javascript Views : 570
Tagged in : Javascript
0 0
Send mail
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



    Login to add Comments .