Thursday 21 January 2016

Simple alert() in java....


<html>
<head>
<title>
USER NAME
</title>
<script type="text/javascript"
language="javascript">


function user()
{


alert("you have register your name...");
}
</script>
</head>


<body>
<form action=""
method="get">
username:<input type="text"
name="u"
id="u"/>
<br>
<input type="submit"
value="submit"
name="submit"
onClick="user()">
</form>
</body>
</html> 

OUTPUT: 
 




No comments:

Post a Comment