Language References
Sets or retrieves advisory information ( ToolTip ) for the object.
Inline |
<element TITLE = sTitle ... > |
Script |
object.title = sTitle ] |
sTitle |
String of advisory text for the object. |
The property is read/write with no default value.
Microsoft® Internet Explorer® renders the title as a ToolTip when the user hovers the mouse over the object.
In the following example, the bold section retrieves its advisory text through a function call that returns a value set with the title property.
<script language="JavaScript">
function boldAdvise ( src ) {
src.title="this is bold text";
return;
}
</script>
...
<P onmouseover="boldAdvise ( this )">bold section</p>
This feature requires Microsoft® Internet Explorer® 4.0 or later.
Show me
TITLE object