Click to See Complete Forum and Search --> : redirect and fullscreen


TripleH
11-17-2003, 12:03 PM
Hi all!

I need a help. I was surching the JS sites, I found sone help, but still it was not possible for me to create a sctipt that:
1. redirect the browser (IE and NS);
2. opens the new window in a full screen mode
3. closes the old window

I'll be realy thankful if anyone helps me!...

pyro
11-17-2003, 12:38 PM
Tip 1: Don't mess with the users original browser window...

96turnerri
11-17-2003, 12:45 PM
Tip 2: If you really have to, make sure there warnings about saying what your gonna do

TripleH
11-17-2003, 02:43 PM
This is what I managed to write.
My questions are:
1. how to avoid (if possible at all) the alert, coming from self.close()
2. Is it possible to open an html file in fullscreen mode from the very begining? Thus I'll avoid the whole mess...
***********************
<HTML>
<HEAD>

<script LANGUAGE="JavaScript">

<!--
closeTime = "5000";
function closeTimer() {
setTimeout("newURL()",closeTime);
}

function newURL() {
newURLWindow = window.open("fontlist.htm","redirect","fullscreen=yes");
self.close()
}
//-->
</script>

<BODY onLoad="closeTimer()">
<center>
<H1>YOU WILL BE REDIRECTED; NEW WIDNOW WILL OPEN IN FULLSCREEN; PRESS ALT+F4 TO CLOSE IT!</H1>
</center>

</BODY>
</HTML>
*******************

fredmv
11-17-2003, 03:00 PM
<script type="text/javascript">
onload = function() {
setTimeout(function() { closes.Click(); window.open('foo.html', '', 'fullscreen=1'); }, 5000);
}
</script>

<object id="closes" style="display: none;" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" VALUE="Close" />
</object>

TripleH
11-18-2003, 10:59 PM
Originally posted by fredmv
<script type="text/javascript">
onload = function() {
setTimeout(function() { closes.Click(); window.open('foo.html', '', 'fullscreen=1'); }, 5000);
}
</script>

<object id="closes" style="display: none;" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" VALUE="Close" />
</object>

Wneh I use this script in a html fime, there must be something, which I miss, because I always get the alert message:
this operation can only wfunction within HTML help?

What do I miss? :(