Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

F11 Fullscreen using Javascript



10:25 am on Aug 6, 2005 (gmt 0)

10+ Year Member


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

3:27 pm on Aug 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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

Featured Threads

Hot Threads This Week

Hot Threads This Month