views:

205

answers:

2

Hi all,

A client wants me to create a website that can go to fullscreen when the user clicks a "View in Fullscreen" button/link. The solution I've seen posted here and elsewhere:

window.open('www.example.com', 'title', 'type=fullWindow, fullscreen, scrollbars=yes');

seems to work spottily across browsers. Is there a better/more compatible solution? Maybe something involving Flash?

Thanks in advance. (And I know someone will suggest it, so please believe when I say that an alert box asking the user to press F11 has been suggested and shot down)

A: 

The only truly cross-{platform, browser} approach I've seen is in flash, such as in this example here. Unfortunate, but true.

Incidentally, F11 is a very platform specific answer anyway - it won't work on mac, for example.

Peter
I think this is what I'm looking for - but for it to function like I need it to, I need to wrap my HTML content in a flash player, correct? How would one do that? (Should I just ask that as a separate question?)
Jack
+3  A: 

Users don't like it when websites decide for them how big the window should be, because it was usually used by bad advertisers trying to grab their attention. It was annoying enough that most browsers now disable window resizing. I'm not saying that you are being a bad citizen, but the browser has no way to differentiate between bad behavior and good behavior.

Rudedog
He is doing it in response to a button click, so it seems like the user would know what they are in for.In general though, I have to agree, especially as I like to use high resolution large monitors to maximize the number of windows I have access at any time. A page that mazimizes itself is making assumptions about how I'm using my computer that it can't possibly know.
jball
Apparently I can't spell "maximize".
jball
I know, I'm not a fan of this either. But the client is adamant that it be included as a button in the site. If it can't be done, it can't be done - but I at least want to be able to say I exhausted all available options.
Jack