Monday 16 July 2012

How to write alert box using javascript


<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function myFunction()
{
alert("Hello! I am an alert box!");
}
</script>
</head>
<body>

<input type="button" onclick="myFunction()" value="Show alert box" />

</body>
</html>

0 Responses to “How to write alert box using javascript”

Post a Comment