Sets or retrieves advisory information (a ToolTip) for the object.
Syntax
HTML<ELEMENT TITLE = sTitle... > Scripting[ sTitle = ] object.title
Possible Values
sTitleString that specifies or receives the advisory text.The property is read/write. The property has no default value.DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.
The property is read/write. The property has no default value.
DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.
Remarks
Windows Internet Explorer renders the title as a ToolTip when the user hovers the mouse over the object. Titles are limited to 512 total characters; this limit includes control characters, such as line feeds, carriage returns, and so on.
Windows Internet Explorer renders the title as a ToolTip when the user hovers the mouse over the object.
Titles are limited to 512 total characters; this limit includes control characters, such as line feeds, carriage returns, and so on.
Example
This example uses the title property to display advisory text when the user hovers the mouse pointer over the text. <SCRIPT> function boldAdvise(src) { src.title="this is bold text"; return; } </SCRIPT> : <SPAN onmouseover="boldAdvise(this)">bold section</SPAN> This feature requires Microsoft Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
This example uses the title property to display advisory text when the user hovers the mouse pointer over the text.
<SCRIPT> function boldAdvise(src) { src.title="this is bold text"; return; } </SCRIPT> : <SPAN onmouseover="boldAdvise(this)">bold section</SPAN>
Standards Information
This property is defined in HTML 3.2 and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
A, ABBR, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CITE, CODE, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, FRAME, FRAMESET, hn, HR, 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, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, OPTGROUP, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP, Element Constructor, HTMLDocument Constructor
See Also
title
Neither way, works:--
<element TITLE=expression(...)dhtmobj.title = expression(...);
(Expression() works nicely elsewhere.)