style.cursor (Property)

A cursor shape to display when the pointer hovers over the element.


CSS level - 2
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.cursor
CSS syntax:cursor: aShape
Argument list:aShapeOne of the available cursor shapes

You can define the shape of the cursor when the mouse pointer moves over the element. This is far more sensible than defining a onMouseOver and onMouseOut handler to set and reset the cursor shape.

The following cursor names can be specified:

The CSS standard suggests that a URI value could be specified to allow for a downloadable cursor shape to be defined although this is not currently supported in any browser.