|
Loading Different Content Into the Same Frameset Document Using a URL This demo shows a way to give direct URL access to multi-frame documents. The HREFs of the frames to load are passed as an argument that is picked up by JavaScript in the frameset document, which then loads those HREFs into the appropriate frames. Take a look at the HREFs of the links on this page for the syntax. And view the source of the next page (frames.html) to see the JavaScript. This demo makes use of JavaScript to write HTML. As such you can't just do a normal "View Source" to see the JavaScript that's doing this behind-the-scenes work. If you weren't already aware, many browsers allow you to type "view-source:" in front of a URL to see the full source of a page, before client-side code gets executed. If your browser supports this, you can use this link to view the full source of the frameset document. First Link (Red Page) |