Window and Frames
Hello, I'm trying to figure out how to use frames in JavaScript. When I use Code Playground to call the upper and lower frame .htm that I saved on my desktop, I get a blank page. Whenever I open the saved link I get the desired outcome, but when I try to link the upper and lower frames to the parent frame I get nothing. Pls Help Ex. <!DOCTYPE html> <html> <head> <title>Ch.8 Ex-1 Mult. Frames</title> </head> <frameset row="50, *" id="topWindow"> <frame name="upperWindow" src="file:///Users/Stew/Desktop/Ch.8_Ex.1_upper.htm" /> <frame name="lowerWindow" src="file:///Users/Stew/Desktop/Ch.8_Ex.1_lower.htm" /> </frameset> </html> <!DOCTYPE html> <html> <head> <title>Ch.8_Ex.1_lower.htm</title> <script type="text/javascript"> function window_onload() { alert("The name of the lower frame's window object is " + window.name); alert("The location of lowerWindow's parent is " + window.parent.location.href); } </script> </head> <body onload="window_onload()"> <p> Lower Frame </p> </body> </html>