Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open, automatically

Status
Not open for further replies.

neobadlands

Programmer
Sep 2, 2000
24
DE
Okay, what I´m trying to do is to open a fullscreen window.
No problems so far. This is basically the script I use (I shortened it):

--------------------------------
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--
function openfullscreen()
{
window.open(&quot;fullscreen.htm&quot;,&quot;&quot;,&quot;height=768,width=1024,type=fullWindow,..........&quot;);
}
//-->
</SCRIPT>
</head>

<body bgcolor=&quot;#000000&quot;>
<A HREF=JavaScript:eek:penfullscreen()></A><OBJECT classid=&quot;.........&quot; codebase=&quot;........&quot;
ID=fullscr WIDTH=100% HEIGHT=100%>
<PARAM NAME=movie VALUE=&quot;../mov/fullscr.swf&quot;>
............
<EMBED ......</EMBED></OBJECT><!-- EndAftershock fullscr.swf --> </body>
</html>

(it´s the kind of script where you have to use a main.htm, a hidden.htm and all that in addition to get a fullscreen window)
--------------------------------


I want this page to open automatically the fullscreen window when you get on its link, which means that I don´t want the above page to be displayed, simply get rid of the
&quot;<A HREF>&quot;.
If anyone knows what I mean and how it´s done, please let me know.

Thanx
Neo...
 
onload is what I was looking for. Thanks a lot.
Is it possible to close the window that contains the onload=&quot;openfullscreen()&quot; tag after it opened the new full screen window??
 
Not without displaying a warning message to the user. this is a security restriction. To do it anyways, add the line:

self.close();

to the end of the openfullscreen() method. jared@aauser.com
 
I tried that, but the warning message stays, he? No way to get that fixed?!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top