well I want to know if javascript works well with asp controls
for example:
here is simple example:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script language="javascript" type="text/javascript">
function exe() {
var a = parseInt(document.getElementById("txt").value);
var b = parseInt(document.getElementById("txt1").value);
document.getElementById("txt2").value = a - b;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txt" runat="server" />
<asp:TextBox ID="txt1" runat="server" />
<asp:TextBox ID="txt2" runat="server" />
<asp:Button runat="server" Text="Click Me" OnClientClick="return exe()" />
<input type="button" value="Click" onclick="return exe()" />
</div>
</form>
</body>
</html>
when I clik on asp button it runs postback, but when I click on HTML button there is not postback...
is it my browser's fault??...