Sets or retrieves the type of cursor to display as the mouse pointer moves over the object.
Syntax
HTML { cursor: sCursor } Scripting object.style.cursor [ = sCursor ]
Possible Values
sCursor String that specifies one of the following values:
auto Browser determines which cursor to display based on the current context. crosshair Simple cross hair. default Platform-dependent default cursor (usually an arrow). hand Hand. move Crossed arrows indicating something is to be moved. *-resize Arrow indicating edge is to be moved (*may be n, ne, nw, s, se, sw, e, or weach representing a compass direction). text Editable text (usually an I-bar). wait Hourglass or watch indicating that the program is busy and the user should wait. help Arrow with question mark indicating Help is available. The property is read/write with a default value of auto; the cascading style sheets (CSS) attribute is inherited.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
Example
The following examples use the cursor attribute and the cursor property to change the cursor as it passes over an object.
This example uses a call to an embedded (global) style sheet to set the cursor to hand as the cursor passes over all paragraphs.
Sample Code
<STYLE> P { cursor:hand } </STYLE>This feature requires Internet Explorer 4.0 or later. Click the icon below to install the latest version. Then reload this page to view the sample.This example uses inline scripting to set the cursor to hand as the cursor passes over the paragraph.
<P onmouseover="this.style.cursor='hand'">
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP