homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

F11 Fullscreen using Javascript

10+ Year Member

Msg#: 4170 posted 10:25 am on Aug 6, 2005 (gmt 0)


I am opening a new browser window (using target="_blank") and for various reasons want to give the user a set of options WITHIN that windoow: close; maximise; reduce; fullscreen.

At present these work fine together:

<a href="JavaScript:window.close()">close</a>
<a href="JavaScript:window.moveTo(0,0); window.resizeTo(screen.width,screen.height);">maximise</a>
<a href="JavaScript:window.moveTo(0,0); window.resizeTo(600,400);">reduce</a>

However, I cannot find any way to get fullscreen except via the following:

<a href="javascript:void(0)" onclick="window.open('mypage.html','mypage','fullscreen=yes,scrollbars=yes')">
full screen</a>

However, it opens a new browser window, and adding '_self', prevents it from working at all.

Moreover, the maximise and reduce links are now deactivated.
It's the same problem if the user simply presses F11

Any simple solution to this?



Bernard Marx

WebmasterWorld Senior Member 10+ Year Member

Msg#: 4170 posted 3:27 pm on Aug 6, 2005 (gmt 0)

It just can't be done. No way around it.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved