<html >
<head >
<title></title>
<script type="text/javascript">
function showData()
{
showResult.innerHTML = "Name: " + form1.Text1.value;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<p>Enter your Name:</p>
<input id="Text1" type="text" />
<input id="Button1" type="button" value="Submit" onclick="showData()" />
<p id="showResult"></p>
</div>
</form>
</body>
</html>
OUTPUT:
No comments:
Post a Comment