'contentWindow' Example : contentWindow : Javascript Properties : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Properties   » [  contentWindow  ]   
 



'contentWindow' Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        alert(document.all.myFrame.contentWindow.location);
    }
</script>
<iframe id="myFrame" src="Http://www.java2s.com" style="width:200;">
</iframe>
<br>
<button onclick="function1();">Location of Frame</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  'contentWindow' Syntax and Note
2.  'contentWindow' is applied to
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.