Hi I have 2 questions<br />
1.I want to make my page go straight to full screen when someone logs on....<br />
2.I want to add link that you can click on that closes the page when the surfer is finished with it....thanks<!--content-->You could use<br />
<br />
<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"#null" onclick="window.open('yourpage.htm','','fullscreen');return false">Full Screen Link</A><br />
<br />
<br />
Then in the page opened in fullscreen include<br />
<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#null" onclick="self.close()">Close window</a><!--content-->thanks mr j - But i need the page to go to full screen when they type in the domain not when them come from a link....is there a waay of doing that....thanks<!--content-->Something like this maybe?<br />
<br />
<br />
<script><br />
function full(){<br />
where=document.f1.t1.value<br />
window.open(where,'','fullscreen')<br />
}<br />
</script><br />
<br />
<form name="f1"><br />
Enter URL <input name="t1" type="text"> <br />
<input type="button" value="Go" onclick="full()"><br />
</form><!--content-->A close window link cannot close a window that the user opened. So all you're going to get is a script that will open a fullscreen pop-up when the first page has finished loading, you can inlude a close window link in this pop-up but when it is closed the original page will still be visible.<br />
<br />
<html><head><title>Opener Page</title><br />
<br />
<script type="text/javascript"><!--<br />
<br />
function openwin(){<br />
<br />
newwin=window.open("http://www.w3.org/","newwin","fullscreen");<br />
<br />
}<br />
<br />
//--></script><br />
<br />
</head><body onload="openwin();"><br />
<br />
<p>You closed the window.</p><br />
<br />
</body></html><!--content-->A close window link cannot close a window that the user opened <br />
<br />
Well, you got me confused <br />
<br />
<!--content-->Originally posted by lavalamp <br />
A close window link cannot close a window that the user opened. it can for me...<br />
<br />
go to <!-- m --><a class="postlink" href="http://www.robdrum.co.uk">http://www.robdrum.co.uk</a><!-- m --> - click anywhere on the page. a full screen thing pops up, then in the top right hand corner there's a little blue x image, which when you click it, closes the window that the user opened.<br />
<br />
feel free to steal any code from that as you like... i know its not exactly what you're after... but i'm not a javascript expert.<br />
<br />
l8rz<!--content-->The user didn't open that pop-up, you did with a js function. When I say a window that the user opened I mean one where the user double clicks their browser icon and opens a window.<!--content-->
1.I want to make my page go straight to full screen when someone logs on....<br />
2.I want to add link that you can click on that closes the page when the surfer is finished with it....thanks<!--content-->You could use<br />
<br />
<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"#null" onclick="window.open('yourpage.htm','','fullscreen');return false">Full Screen Link</A><br />
<br />
<br />
Then in the page opened in fullscreen include<br />
<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#null" onclick="self.close()">Close window</a><!--content-->thanks mr j - But i need the page to go to full screen when they type in the domain not when them come from a link....is there a waay of doing that....thanks<!--content-->Something like this maybe?<br />
<br />
<br />
<script><br />
function full(){<br />
where=document.f1.t1.value<br />
window.open(where,'','fullscreen')<br />
}<br />
</script><br />
<br />
<form name="f1"><br />
Enter URL <input name="t1" type="text"> <br />
<input type="button" value="Go" onclick="full()"><br />
</form><!--content-->A close window link cannot close a window that the user opened. So all you're going to get is a script that will open a fullscreen pop-up when the first page has finished loading, you can inlude a close window link in this pop-up but when it is closed the original page will still be visible.<br />
<br />
<html><head><title>Opener Page</title><br />
<br />
<script type="text/javascript"><!--<br />
<br />
function openwin(){<br />
<br />
newwin=window.open("http://www.w3.org/","newwin","fullscreen");<br />
<br />
}<br />
<br />
//--></script><br />
<br />
</head><body onload="openwin();"><br />
<br />
<p>You closed the window.</p><br />
<br />
</body></html><!--content-->A close window link cannot close a window that the user opened <br />
<br />
Well, you got me confused <br />
<br />
<!--content-->Originally posted by lavalamp <br />
A close window link cannot close a window that the user opened. it can for me...<br />
<br />
go to <!-- m --><a class="postlink" href="http://www.robdrum.co.uk">http://www.robdrum.co.uk</a><!-- m --> - click anywhere on the page. a full screen thing pops up, then in the top right hand corner there's a little blue x image, which when you click it, closes the window that the user opened.<br />
<br />
feel free to steal any code from that as you like... i know its not exactly what you're after... but i'm not a javascript expert.<br />
<br />
l8rz<!--content-->The user didn't open that pop-up, you did with a js function. When I say a window that the user opened I mean one where the user double clicks their browser icon and opens a window.<!--content-->