Automatic browser resizing - javascript

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Automatic browser resizing - javascript

Post by m3mn0n »

I want to put the user in full screen mode when they first visit my site, is there a code anyone knows of that can do this? I've searched around a few big javascript sites and nothing.
Skyzyx
Forum Commoner
Posts: 42
Joined: Fri Feb 14, 2003 1:53 am
Location: San Jose, CA

Post by Skyzyx »

I'm going to hate myself in the morning for giving out this information, as it only makes the web a worse place to be... but here it is:

Code: Select all

window.open(location.href, "", "fullscreen, scrollbars");
It only works in IE5+. Gecko browsers open a full screen with a title bar, and I'm not sure about Opera. This is considered a "bug" by Microsoft, and is supposed to be removed in the upcoming IE7.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Be careful what you use this for - it could end up turning a lot of people away.

Mac
Post Reply