Click to See Complete Forum and Search --> : How to load a new URL in a frame?


karayan
05-26-2003, 02:39 PM
I would think this should be trivial, but I can't figure it out. I tried any combination I could think of and it doesn't work.

I need to have JavaScript inside the document of a frame load another URL inside that same frame, without disturbing the other frame(s). How do I do that?

Incidentally, when I do a window.length in the document inside that frame, it returns 0. Shouldn't the window contain two frames (the one doing the window.length and the other one)? If it matters, the current window was loaded as a document with a <frameset> and two <frame> tags, all with params.

Thanks.

khalidali63
05-26-2003, 02:44 PM
parent.frameName.location.href = newurl