APEX-AT-WORK no image

Open your browser window in fullscreen mode

Von Tobias Arnhold 4.07.2010
I answered a question in the APEX forum about an automatic full screen mode for your APEX application.

There are a couple of ways how you can achieve this. Anyway there is no simple solution and each way has some bad sides too.

Solution 1: Use a temporary HTML page to open your application window

<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
<script type="text/javascript">
window.opener=self;
// fullscreen only
window.open('http://YOUR_URL','','fullscreen=yes');
// fullscreen with no bars inside your browser
window.open('http://YOUR_URL','','fullscreen=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes');
window.close();
</script>
</BODY>
</HTML>

Solution 2: Use ActiveX (IE only)

<HTML>
<HEAD>
<script type="text/javascript">
function fnc_fullscreen()
{
var obj = new ActiveXObject("Wscript.shell");
obj.SendKeys("{f11}");
}
</script>
</HEAD>
<BODY onload="javascript:fnc_fullscreen()">

</BODY>
</HTML>

Solution 3: Set size after max screen size (not good for two screens, not tested yet)

<HTML>
<HEAD>
<script type="text/javascript">
function fnc_fullscreen()
{
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
}
</script>
</HEAD>
<BODY onload="javascript:fnc_fullscreen()">

</BODY>
</HTML>

Source: http://www.webmasterworld.com/webmaster/3792262.htm

If you found a better way fixing this issue. I would really like to hear it.

Post Tags: