Replace the text in each text field below with the correct JavaScript object, property, method, function name or comment. Click the test your code! button and see your JavaScript code in action.

Frameset.html file
 
<html>
<head>

<title>Frameset file</title>

    <frameset cols="200,*" border = "1">
    <frame src="left.html" name="1 " frameborder="1">
    <frame src="right.html" name="2 " frameborder="1">
    </frameset>

</body>
</html>

 

left.html file
 
<html>
<head>

    <script language = "JavaScript">
    function 3 ( ) {
      4
      ("<html><head></head><body>This page was dynamically generated!</body></html>");
      parent.right.document.close();
    }
    </script>

<title>Left frame file</title>
</head><body>

<a href = "JavaScript: 5 ( )">
Click this link to load a dynamically-generated page in the right frame</a>

</body>
</html>

 

right.html file
 
<html>
<head>

<title>Right frame file</title>

</head>
<body>

    <!-- This page will be blank when loaded -->

</body>
</html>
 




Ask questions & get answers at the JavaScript forum >>

Back to example index

©2000 Joe Sriver, www.sriver.com