JavaScript Reference/Javascript Properties/offsetParent
"offsetParent" Example
<source lang="javascript">
<html> <body> <script language="JavaScript">
function function1() { alert(document.all.myText.offsetParent.tagName); }
</script> <textarea id="myText"> </textarea> <button onclick="function1();">Offset Parent</button> </body> </html>
</source>
"offsetParent" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | |<base> <basefont> | | | |
| |<body> || |
| |
<button> || | |
| || | |<col> <colgroup> | | |<comment> <custom> | | |
| | | <dir> ||
| |
- | | |<embed> <fieldset> | | | <form> | | |<frame> <frameset> | | |<head> <hn> | | |
<html> || | <iframe> | | |<img> <input type="button"> | | |<input type="checkbox"> <input type="file"> | | |<input type="hidden"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> | | |<isindex> | | |<label> <legend> |
| |- <link> | | |<listing> <map> | | |<marquee> <menu> | | |<meta> <nobr> | | |<noframes> <noscript> | | |<object>
| | |<optgroup> <option> | | |
<param> | | |<plaintext>
| | |