Wednesday, November 21, 2012

Javascript use to Display The Alert Box


<!DOCTYPE html>
<html>
<body>

<h1>My First JavaScript</h1>

<p>
JavaScript can react to events. Like the click of a button:
</p>

<button type="button" onclick="alert('Welcome!')">Click Me!</button>

</body>
</html> 

Output:

 JavaScript

JavaScript can react to events. Like the click of a button:

0 comments:

Post a Comment

Thanks For Coming The Page.