LOADING A WINDOW WITHOUT TOOLBAR,ADDRESS BAR,STATUS BAR IN ASP

PROGRAM:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
<h1>LOADING A WINDOW WITHOUT TOOLBAR,STATUSBAR,ADDRESSBAR AND UNLOADS WINDOW AFTER ONE MINUTE</h1>
    <script language="javascript">
        function create_window() {
            a = window.open("", "","width=200,height=200,toolbar=no,addressbar=no,statusbar=no,scrollbars=yes,resizable=yes,top=500,left=500")
            message = "<html><body><h1>welcome to this window</h1></html>"
            a.document.write(message)
            setTimeout("a.window.close()", 10000)
        }
        </script>
    <form id="form1" runat="server">
    <div>
    <input type="button" value="CLICK TO LOAD THE WINDOW" onClick="create_window()"></inputtype>
    </div>
    </form>
</body>
</html>

No comments:

Post a Comment