<html>

<!-- Mirrored from www.w3school.com.cn/example/hdom/frame_src.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 05:06:47 GMT -->
<head>
<script type="text/javascript">
function newSrc()
  {
  parent.document.getElementById("leftFrame").src="../../index.html"
  parent.document.getElementById("rightFrame").src="http://google.com/"
  }
</script>
</head>

<body>
<input type="button" onClick="newSrc()" value="改变框架的 source" />
</body>


<!-- Mirrored from www.w3school.com.cn/example/hdom/frame_src.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 05:06:47 GMT -->
</html>