I have a window, and its split into two frames. When you click on some text in one frame I want to use the document.write() for the other frame. I know how to make evrything work except for the document.write() part. Anyone know how to do it?
Printable View
I have a window, and its split into two frames. When you click on some text in one frame I want to use the document.write() for the other frame. I know how to make evrything work except for the document.write() part. Anyone know how to do it?
i think this should work, but my brain isnt exactly working right now cuz the snow day thing.
parent.rightframename.document.write(stuff+to+write)
Didn't work, I used:
VB Code:
<div onmouseclick="parent.main.document.write("test")">Test</div>
<div onClick="parent.main.document.write(\"test\")">Test</div>
It still doesn't work, I'm using Internet Explorer, would this be a problem.
Maybe you need to use the frames array? something like
You aren't trying to write it after it has loaded a frame have you? I.e. you shouldn't be putting an src attribute for the frame you want to write to.Code:window.frames['frameName'].document.write('Hello');
Oh, I was giving the frame a source. Well I will take the source out and test it.