[thelist] IE resize to full screen- via JavaScript

Liam Delahunty ldelahunty at britstream.com
Sun Dec 29 14:29:01 CST 2002


Shoshannah Forbes wrote:
>For an Intranet all running IE- is it possible via JavaScript to resize
>to the same full screen mode F11 gives?
>If so, how?

http://www.liamdelahunty.com/tips/javascript_new_window_full_screen.php

in the head have

<script language="JavaScript">
<!-- //
function wo(url, name, bits) {
newWin=window.open(url, name, bits);
newWin.moveTo(0,0);
newWin.focus();
}
// -->
</script>


have a link in the document...

<script language="JavaScript">
<!-- // I've put in deliberate line breaks after the commas for
readability...
document.writeln("<a href=\"javascript:wo
('document_name.html',
'windowname',
'height="+screen.height+",
width="+screen.width+",
toolbar=no,
scrollbars=no,
resizable=yes,
status=no,
copyhistory=yes,
location=no,
menubar=no')\">Full screen</a>");
// -->
</script>

There's a slight bug in that it doesn't count the actual size of the browser
bits... but I'm sure you can sort that out.

Kind regards,
Liam Delahunty
Mega Products Limited, 10-11 Moor Street, Soho, London W1D 5NF
http://www.liamdelahunty.com/ web/ design/ database/ programming
http://www.britstream.com/ Hosting/ Domain Names From UKP 7.50 p.a.






More information about the thelist mailing list