'offsetParent' Example : offsetParent « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- offsetParent
'offsetParent' Example
<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>
Related examples in the same category