2012-07-23

How to display a popup window in full screen mode

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">
        function openPopup() {
            window.open("yourpagename.html", null, "fullscreen=yes, channelmode=no, scrollbars=yes, resizable=no, status=no, toolbar=no, directories=no")
        }
    </script>
</head>
<body>
    <form>
    <input type="button" name="btnFullscreen" value="Open in fullscreen" onclick="openPopup();" />
    </form>
</body>
</html>

When you press the button, the popup will open in full screen. Note that this can be vary depend on the browser settings and this is not a good user experience too.

No comments: