MozillaZine

Open new tab from HTML script

Discuss building things with or for the Mozilla Platform.
Jeffroeq
 
Posts: 1
Joined: March 16th, 2005, 2:25 pm

Post Posted March 16th, 2005, 2:41 pm

I work in an environment in which I use multiple web browsers to either perform work or monitor data. I currently have a HTML script that runs that automatically opens these each of these sites in a new browser. I'm trying to create a new script that will do the same thing only instead of opening a new browser I want to open a new tab in Firefox. The following is a sample of the script I've been using. I've been searching for a command to add that would send a page to a new tab but have been unable to locate one. Can anyone help?

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1');");
}
// End -->
</script>
<meta http-equiv="refresh" content="5;url=http://www.myhr.carlson.com/index.asp">
</head>

<BODY onLoad="javascript:popUp('http://epicenter.carlson.com/')"
Jeffroe Q. Boecefus
"Don't Panic" - The Hitchhikers Guide to the Galaxy

Return to Mozilla Development


Who is online

Users browsing this forum: No registered users and 1 guest