lecture menu |
lecture 10: frameset documentsAs ever, this lecture only introduces the concept of frameset documents, which can be gone into in quite some depth. The detail is provided by the online teaching materials. Note that there is also some code on the handout for this lecture. Frameset documents can cause confusion for some people because to an extent they are "invisible". In the example (by the way, it's probably a good idea to re-open this page and keep it open over the next couple of slides, if you had closed it), if you "View Source" in any of the three parts of the screen (top, left, right) when the window is in its original state, you will see the source code of the following documents (if you'd followed any links the left and right parts might have changed, but the basic principle remains the same):
However, ext_frame.html - which is what appears in the location bar - is "concealed". Have a look at your handout, however, where I've put the complete code for this file. We will briefly analyse what's going on here, but to say again, details are in the online teaching materials.
As the example demonstrated, however, the point of frames is that you can get the browser to load up different files into each of the sections of the page, effectively changing the initial conditions that you specify in the frameset document. How you do this is the topic of the next slide. |