<html>
<body>
<p>Click the button to change the location of the first iframe element (index 0).</p>
<button onclick="myFunction()">Try it</button>
<br><br>
<iframe src="../index.html"></iframe>
<iframe src="../index.html"></iframe>
<script>
function myFunction() {
window.frames[0].location = "index.html";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_frames by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:42 GMT -->
</html>