Click to See Complete Forum and Search --> : reload current frame-content indifferent frame or new window


Dirk Stein
03-13-2003, 06:48 PM
netscape provides the possibility (by right-click) to reopen frame in a new window. Iīd like to add this feature to a button located in frame "a" to reopen frame "b" (or to reopen frame "b" in frame "c"). function should be crossbrowser. Can I do this with javascript? Any hints how?

thanks for your help.

Dirk Stein

Jona
03-13-2003, 06:50 PM
<INPUT TYPE=button onclick="window.framename.location='wherever.html'" value=" Click here ">

Is that what you want? What'd you mean by, "reopen"? You mean reload?

Dirk Stein
03-14-2003, 02:46 PM
sorry, donīt think thatīs it...

example:
frameset contains "content", "datails" and "footer

click on menu item ("content"-frame) opens "whatever.html" in "details"-frame. Button ("footer"frame) opens "whatever.html" in new window.

click on different menu item opens "somethingelse.html" in "details"-frame. Now same button as above opens "somethingelse.html" in new window.

and so on...

pyro
03-14-2003, 03:29 PM
I think this is what you are looking for:

<input type="button" name="mybutton" value="Open new window" onclick="window.open(top.details.location,'win','width=400,height=300');">

Dirk Stein
03-15-2003, 03:38 PM
Should be that, but...

menu item opens search page in "details"-frame, performing search displays results page in "details"-frame: now button does not work. whatīs wrong?

pyro
03-15-2003, 05:59 PM
Post a link or some code...