javascript simple programs with concatenation
Enter First Number :
Enter First Number :
<script>
function javascriptclick()
{
x=document.getElementById('txt1').value;
y=document.getElementById('txt2').value;
alert(x+y)
}
</script>
<body>
Enter First Number :<input type="text" id="txt1">
Enter Second Number :<input type="text" id="txt2">
<input type="button" value="click" onclick="javascriptclick()">
</body>
0 comments: