Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Attributes for <A ...>
onMouseOver = "script command(s)"
onMouseOut = "script command(s)"

Looking for Information on Rollover Images?

You might want to check out our rollover images tutorial.
onMouseOver and onMouseOut are event handlers that are triggered when the mouse moves over the link and then when it moves out from the link again. The most common use for these event handlers are rollover images, but you put any kind of program in them you want.

So, for example, this code displays an alert box when the mouse moves over the link:

this code produces this
<A 
   HREF="omoexample.html"
   onMouseOver="alert('my alert box')">my page</A>
my page

This code displays an alert box when the mouse moves out from the link:

this code produces this
<A 
   HREF="omoexample.html"
   onMouseOut="alert('my alert box')">my page</A>
my page

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire