Not quite F11, but does maximise the current window, when called on the onLoad 
event

// Resize - catch needed as errors when window is dragged
try{
    window.moveTo(0,0);
    window.resizeTo(screen.width,screen.height - 27);
}
catch(ex){}



Anne Busby  | Senior Developer

3 Sarich Way, Technology Park, Bentley, WA 6102
Phone +61 8 6250 7900 | Fax +61 8 6250 7999
P Please consider the environment before you print this email
________________________________
From: [email protected] [[email protected]] 
On Behalf Of Jonathan Parker [[email protected]]
Sent: Tuesday, 16 February 2010 10:29 AM
To: ausDotNet
Subject: Re: F11 via Javascript

http://stackoverflow.com/questions/1030928/browser-fullscreen-window-fullscreentrue-not-working

On Tue, Feb 16, 2010 at 1:21 PM, Stephen Price 
<[email protected]<mailto:[email protected]>> wrote:
Hey all,

I'm wondering if there is a way to put your browser in fullscreen mode (same as 
pressing F11) via Javascript. My searching has turned up some scripts for 
opening new windows in fullscreen, but not for the current window. It's looking 
like something you can't do (probably for security reasons, to stop ppl 
hijacking the browser).

thanks in advance,
Stephen

Reply via email to