Update two iframes : Iframe : HTML : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP


JavaScript DHTML  »  HTML   » [  Iframe  ]   
 



Update two iframes


<html>
<head>
<script type="text/javascript">
function twoframes(){
    document.getElementById("frame1").src="http://www.java2s.com"
    document.getElementById("frame2").src="http://www.java2s.com"
}
</script>
</head>

<body>
<iframe src="http://www.java2s.com" id="frame1"></iframe>
<iframe src="http://www.java2s.com" id="frame2"></iframe>
<br>
<form>
<input type="button" onclick="twoframes()" value="Change url of the two iframes">
</form>
</body>

</html>



           
       
Related examples in the same category
1.  'contentWindow' Example
2.  'allowTransparency' Example
3.  IFrame operation
























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