Click to See Complete Forum and Search --> : frame


misst
09-01-2003, 08:43 AM
Hi!!
I have a html page with 2 frames, on the left I have a archive, clicking on a document I need it to be opened on the right frame.
The document is opened by the comand:
window.location.href=file_name

How do I tell it to open it there????


thank you!!

Charles
09-01-2003, 08:47 AM
Originally posted by misst
How do I tell it to open it there????It's bad to use JavaScript for navigation, and unnecessary. Just use a link.

<a href="http://www.w3.org/" target="frameName">W3C</a>

misst
09-01-2003, 08:50 AM
the problem is that I must use java to adapt a program that already exist!!

I think it's possible, but I don't know how...
Can you help me the same?

Charles
09-01-2003, 08:52 AM
I'm afraid, though, that this is a JavaScript forum. For Java help you will need to go elsewhere.

misst
09-01-2003, 08:55 AM
the program that I have to modify is in javascript!!

Khalid Ali
09-01-2003, 09:31 AM
this will open link in a targetted frame

parent.frameName.location.href = url;