Now we need to use our frames!
Our hero has also written a fine page called life.html. It looks like this
I work. I sleep. I walk my dog. On sudays, I eat with mom. |
They want the life link to make this page appear in the right frame. we do it like this. in navigate.html, when you write out the link, we add a target with the name of the frame in it
<a href="life.html" target="main">
Now their page looks like this!
write me! |
I work. I sleep. I walk my dog. On sudays, I eat with mom. |
Click on me to see this actual frameset!
and so on for each navigation element.
There are other targets you can use other than a name of a frame. You can use
target="_self" to have it load in the same frame
target="_top" to have it load on top of the frameset, thus wiping out the frames
target="_blank" to open a new window
and target="_parent" to open it in the top of the frameset . This tends be useful if you are nesting frames. otherwise _top is fine.