Forum Moderators: open
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?
Thanks