Thursday, February 26, 2015

Test Browser Supports Cookies Are Not

Design the form as follows:

<head runat="server">
    <title></title>
    <script type="text/javascript">
        function checkcookies() {
            if (navigator.cookieEnabled)
                alert("Cookies are Enabled");
            else
                alert("Cookies are Disabled");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="checkcookies();" />
    </div>
    </form>

</body>








Output:





No comments:

Post a Comment

Thank you for visiting my blog

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...