Home  • University • Campus

JavaScript Tutorial -Lesson:2

JavaScript: Reacting to Events

Example

<!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:

Comments 2


How i read full post....?
what do you mean by full post?

Share

About Author
Zinia Islam
Copyright © 2024. Powered by Intellect Software Ltd