'offsetParent' Example : offsetParent « Node Operation « JavaScript DHTML






'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