That is a couple of framesets i have on one page. Now, I have another page called Contents.htm which is the source of the frame named "a", as you can see.
What i want to do, is have a function load on Contents.htm that will check which page is currently in frame "b" - and based on that it will document.write either a link or only text.
Here is what i tried to do, and i know i messed up trying to reference the source of frame "b".
function homePageCheck() {
if (document.b == "WEBSITE") {
document.write(" <font color='gray'>Home</font>")
}
else {
document.write(" <a href='WEBSITE' target='b'>Home</a>")
}
}
If anyone happens to decipher this lol, I would appreciate if you could help me out. Thank You.
Originally posted by ai3rules if (document.b == "WEBSITE") {
Try parent.b.location instead.
The Web Standards Project – Build accessible standard compliant websites, please! Browse Happy – Don't forget to support the browsers with standard compliance
Bookmarks