Opening a Full-Screen Window


newwin.resizeTo(screen.width, screen.height); newwin.moveTo(0, 0); 

Internet Explorer 4 supports the window.open() option fullscreen=yes, but a more general approach is of course to read out the screen object for the system's dimensions and then resize the window appropriately. Do not forget to reposition it in the top-left corner of the screen!

Opening a Full-Screen Window (center.html)

<script language="JavaScript"   type="text/javascript"> var newwin = window.open(   "http://www.samspublishing.com/",   "samsWindow",   "directories=no,menubar=no,toolbar=no, scrollbars=yes"); newwin.resizeTo(screen.width, screen.height); newwin.moveTo(0, 0); </script> 




JavaScript Phrasebook(c) Essential Code and Commands
JavaScript Phrasebook
ISBN: 0672328801
EAN: 2147483647
Year: 2006
Pages: 178

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net