Here's What's Happening
- FORM tells the browser a form type is going here.
- INPUT TYPE="button" seems pretty self-explanatory.
- VALUE= denotes what will be written on the button itself.
- onClick= denotes that what follows should happen when the button
is clicked. Please keep the capitalization on the letter "C".
- parent.frames[1].location='zippy5.html'; is the java script
command that does the trick for you.
"parent" is the main page, the frame page.
"frames[1]" is the frame that will be affected.
"location='---' denotes what will fill the
frame when clicked. In this case it's some pages called zippy.
Please make note of the semicolon (;) at the end
of each frame command line. Without it, you will get errors like crazy.
- /FORM ends the entire deal.
You can add as many or as few of the location commands as you want.
If you have 20 frames, you can change them all with one click. Just make sure to add
a new parent.frames[#].location='--'; for each one. However, you only need one onClick command.
Let me also caution you that the quotes that surround the
location page are single quotes. But there are double quotes surrounding the run of
parent.frames[#].location='--'; commands. Make sure you get the quotes right or
errors galore.
Well, there you go. As many frames as you can
write, that's how many you can change with the click of a button. Good luck with this,
but remember that when you are reloading multiple frames, you are loading
multiple pages. The process may be very slow due to the many items needed.
If you use this function, do your best to offer low-byte pages for the shortest loading time.
Enjoy!
[Back to the Goodies Home Page]
[The Frame Page Code]
[Frame Order]
[The Command]
[Here's What's Happening]