Click Event use with Alert Function In Java Script

Click Event use with Alert Function



<html>
<head>
<script type="text/javascript">
function msg(){
 alert("Hello Javatpoint");
}
</script>
</head>
<body>
<p>Welcome to JavaScript</p>
<form>
<input type="button" value="click" onclick="msg()"/>
</form>
</body>
</html>  

Comments

Popular posts from this blog

Set the variables to different values and different operators and then try...

auto redirected page in java script