<!DOCTYPE html>
<html>
<head >
<title></title>
<script>
function f1(){
show.innerHTML = "Name:" + form1.text.value;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<p >Enter Name</p>
<input id="text" type="text" >
<input type="button" id="submit" value="Submit" onclick="f1()">
<p id="show"></p>
</form>
</body>
</html>
Output:
Posted By: pankaj_bhakre
No comments:
Post a Comment