HTML CSS Reference/CSS Attributes and Javascript Style Properties/textDecorationUnderline
Содержание
"textDecorationUnderline" Example
<html>
<body>
<p id="myT">Text sample.</p>
<input type="button"
value="decoration:underline"
onclick="myT.style.textDecorationUnderline="true"">
</body>
</html>
"textDecorationUnderline" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <address> |
| |<b> <big> |
| |<blockquote> <body> |
| |<button> <caption> |
| |<center> <cite> |
| |<code> <col> |
| |<colgroup> currentStyle |
| |<custom> <dd> |
| |defaults <dfn> |
| |<dir> <div> |
| |<dl> <dt> |
| |<em> <fieldset> |
| |<form> <hn> |
| |<html> <i> |
| |<inputtype="button"> <input type="file"> |
| |<input type="password"> <input type="radio"> |
| |<input type="reset"> <input type="submit"> |
| |<input type="text"> <isindex> |
| |<kbd> <label> |
| |<legend> <li> |
| |<listing> <marquee> |
| |<menu> <ol> |
| |<p> <pre> |
| |runtimeStyle <s> |
| |<samp> <select> |
| |<small> <span> |
| |<strike> <strong> |
| |style <sub> |
| |<sup> <table> |
| |<tbody> <td> |
| |<textarea> <tfoot> |
| |<th> <thead> |
| |<tr> <tt> |
| |<u> <ul> |
| |<var> <xmp> |
+----------------+--------------------------------------------------------------+
"textDecorationUnderline" Possible Values
Possible Values
true
false.
"textDecorationUnderline" Syntax and Note
Note:
JavaScript-only style properties.
Controls the text decorative.
Syntax:
elementID.style.textDecorationElement = "value"
document.all.elementID.style.textDecorationElement = "value"