'offsetParent' Example : offsetParent « Javascript Properties « JavaScript Reference

'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

1.'offsetParent' Syntax and Note
2.'offsetParent' is applied to