|
Linking between frames
Today I'm going to start off with pretty much the simplest JavaScript
you can get.
If you've visited the Worfolk Developers Library (or are on it now),
you will know that each time you click on the library, downloads
or code centre tabs on the menu, you are also redirected to the
homepages in the main window. Take a look at this source code.
Note: Since this was written we removed the JavaScript from our
page so you want find it in the source code anymore.
<a href="javascript:parent.doodle.location.href
= 'http://www.whatever.com'">Whatever.com</a>
Fairly simple eh? It is basically a hyperlink between frames but
the script we used we removed the actual link so it linked to the
page automatically when the page loads. Here’s how it structures.
document.frame.url
And now you know how to link between frames! |