Javascript Show Alert on Mouse Over

Posted: September 28, 2010 in Javascript

If you need to show an alert message when the user moves the mouse pointer over a link, you can try the following:
HTML/Javascript

<a href="" onmouseover="alert('This is an alert box');return true;">Some text here about the link</a>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s