How can we take the value of a variable in javascript function to the ASP.NET string
I wish to display the value of P using Response.write when I click the Button.
//my code
I wish to display the value of P using Response.write when I click the Button.
//my code
Code:
<html>
<form>
<input type="Button" onclick="count();"/>
</form>
</html>
<script language='javascript'>
function count(s,n)
{
n=5;
s=10;
p=n+s;
document.write("Function value"+p);
}
</script>
Comment