PDA

View Full Version : open new window to a specific frame



Monabizi
October 19th, 2004, 10:46 AM
hi,
i got an html ("myHTML1.htm") with with a button the "window.open" other window (myHTML2.htm").

"myHTML1.htm" is inside a frameset and his frame id is "content".

i do -

window.open(myHTML2.htm,"content")
so the "myHTML2.htm" will be open in the same frame as "myHTML1.htm".

the problem is that it won't work...
do you know why? :kir:

[m]
October 19th, 2004, 11:54 AM
Because your understanding op javascript is totally wrong.

To open a site inside a frame, use



<a href="thepage.html" target="framename">link!</a>

Monabizi
October 19th, 2004, 11:57 AM
but if i want to do some checking before the linking?
(if the check fails, do an alert..)