In Association with Amazon.in   Flipkart

Tuesday, October 1, 2013

JavaScript Inline Event Effect Example

With out using DOM Function we can apply JavaScript Inline Event Effect:


 Example:- 

<body>
<p>Keep Mouse Pointer on below heading!</p>
<h2 onmouseover="this.style.color='red'; this.style.backgroundColor='yellow'; this.style.padding='12px';" onMouseOut="this.style.color='green'; this.style.backgroundColor='pink'; this.style.padding='12px';">Welcome TO JS DOM Functions</h2>
</body>

Output:-

Keep Mouse Pointer on below heading!

Welcome TO JS DOM Functions


No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...