um .. what is wrong with this??
parent.document.getElementById('RightFrame').location='components\shout\';
thanks kris
Printable View
um .. what is wrong with this??
parent.document.getElementById('RightFrame').location='components\shout\';
thanks kris
getElementById() is used to get elements, not documents. try:
parent.rightframe.window.document.location = "myPage.html"
or try switching the order of those words, I always get the wrong. I know it ends in document.location.
hmm.. still doesn't work ... this is the code for my frame:
<iframe src="right.asp" width="100%" height="100%" frameborder="0" name="RightFrame" id="RightFrame"></iframe>
aah an I frame, I have done this in the past but have forgotten how to do frames well.
I don't think you should have the parent bit.
try:
document.RightFrame.location = "myPage.html"
ahh got it ;).. it didn't like my slashes ... but it doesn't mind backslashes... thanks