Click to See Complete Forum and Search --> : full screen


tane
08-31-2003, 03:08 AM
Hi I have 2 questions
1.I want to make my page go straight to full screen when someone logs on....
2.I want to add link that you can click on that closes the page when the surfer is finished with it....thanks

Mr J
08-31-2003, 03:58 AM
You could use


<A HREF="#null" onclick="window.open('yourpage.htm','','fullscreen');return false">Full Screen Link</A>


Then in the page opened in fullscreen include


<a href="#null" onclick="self.close()">Close window</a>

tane
08-31-2003, 08:09 AM
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

Mr J
08-31-2003, 01:43 PM
Something like this maybe?


<script>
function full(){
where=document.f1.t1.value
window.open(where,'','fullscreen')
}
</script>

<form name="f1">
Enter URL <input name="t1" type="text">
<input type="button" value="Go" onclick="full()">
</form>

David Harrison
08-31-2003, 03:19 PM
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.

<html><head><title>Opener Page</title>

<script type="text/javascript"><!--

function openwin(){

newwin=window.open("http://www.w3.org/","newwin","fullscreen");

}

//--></script>

</head><body onload="openwin();">

<p>You closed the window.</p>

</body></html>

Mr J
09-01-2003, 09:20 AM
A close window link cannot close a window that the user opened

Well, you got me confused :confused:

:D

hammerslane
09-01-2003, 09:24 AM
Originally posted by lavalamp
[B]A close window link cannot close a window that the user opened. it can for me...

go to http://www.robdrum.co.uk - 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.

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.

l8rz

David Harrison
09-01-2003, 11:51 AM
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.