PDA

View Full Version : Broken Link?... if (parent.frames.length > 0)...



clicken
05-15-2007, 04:05 PM
if (parent.frames.length > 0) {
parent.location.href = self.document.location
}

Site Report Card reports that this code on my page (http://www.schoolhouseflash.com) is a broken link.


I am assuming it should be...


if (parent.frames.length > 0) {
parent.location.href =http://www.schoolhouseflash.com/index.html
}


Is this correct or should there be quotes or anything else included?

mwinter
05-15-2007, 06:04 PM
if (parent.frames.length > 0) {
parent.location.href = self.document.location
}

Site Report Card reports that this code on my page (http://www.schoolhouseflash.com) is a broken link.

Then "Site Report Card" is clearly flawed - not unusual for that type of site.

clicken
05-15-2007, 08:48 PM
It seemed logical to change it to match the same code used in the other pages of the frameset butů I am learning not to assume.

Thanks!