DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Full screen (http://www.daniweb.com/forums/thread46863.html)

tootytoot Jun 1st, 2006 12:03 pm
Full screen
 
Hi ppl,
i have a prob here. i'm trying to do a webpage and putting it in a cd for viewers to view. so i found the script below to open a full screen windows. it work! but the prob is that it opens two pages. one normal window and a full screen window. any ways to code it in order to get just one full screen windows? thanks in advance :)


<SCRIPT LANGUAGE="JavaScript">
if (this.name!='fullscreen'){
window.open(location.href,'fullscreen','fullscreen,scrollbars')
}
</script>

campkev Jun 1st, 2006 5:19 pm
Re: Full screen
 
<SCRIPT LANGUAGE="JavaScript">
if (this.name!='fullscreen'){
window.open(location.href,'fullscreen','fullscreen,scrollbars')
window.close(this)
}
</script>

John.Nye Jun 2nd, 2006 7:42 pm
Re: Full screen
 
The window close in the suggestion will require a confirm if the page was not opened by a script. An alternative is to obtain the screen size and to moveto and resize the window to be ful screen.

Darkmeerkat Jun 2nd, 2006 11:28 pm
Re: Full screen
 
Quote:

Originally Posted by John.Nye
The window close in the suggestion will require a confirm if the page was not opened by a script. An alternative is to obtain the screen size and to moveto and resize the window to be ful screen.

That's in Internet Explorer; Firefox will refuse to close the window at all.
(And the "fullscreen" window Firefox generates will just be a normal size windows sans the top toolbars.)


All times are GMT -4. The time now is 9:35 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC