Discussion Locked

Java Script Window.open target problem

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Im in trouble, I have a page with 2 frames, top & bottom. Another page has a hyperlink , opening a page into top frame of the other. Even in hyperlink or in window.open the target is correct but whenever u click the hyperlink or the window.open iscalled, it opens the page in a new window. Just fedup, cant figure out the problem, plz help

10 replies

by ebob

Rather than window.open, can you try to set the "location" property of the frame?

by brazda.jiri

It would be better to name frames by another words than "top" and "bottom" because these ones are default properties of window. Name it like "frame1", "frame2" and then call

window.parent.frame2.navigate(...)

by rolie

Whenever you use window.open to call another page, it will always open a new window. I suggest don't use window.open function.

by emkay_mm

hi,
as far as i can make out your problem looks like this.
you have an htm page(say a.htm) with two frames in it top and bottom and in the top frame you want another file (say b.htm)to be loaded when a link from c.htm is presed.if this is the problem then u can try this.
first create a page say(temp.htm) with two frames in it with the frameset tag

save it as temp.htm(or any name you want.
now refer the hyperlink in c.htm as

This discussion is closed to new replies.