The function client side is not working properly...

Posted by jagdeep on Stack Overflow See other posts from Stack Overflow or by jagdeep
Published on 2010-12-22T14:09:17Z Indexed on 2010/12/22 14:54 UTC
Read the original article Hit count: 178

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
    function abc()
    {
        return confirm('are U sure?');
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="abc()" 
            onclick="Button1_Click" style="height: 26px" />

    </div>
    </form>
</body>
</html>

In the above page whether U click ok or cancel for confirmation box the processing transfer for server why?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ASP.NET