Click to See Complete Forum and Search --> : href
bicio
05-26-2003, 10:15 AM
I have a page with 2 buttons:button A and button B.Button A links to a page whose target is "_top",the page itself. Button B has a window.open reference to a new page. In this new page i would like to have a button that works like button A,opening the same window opened by button A in the same target as button A does.How can i translate this reference?Is it possible with "parent" object?
Thanks 4 help!!
You mean... You open a window with button B, and when you click button C, button B's opened window stays open and goes to a different page?
bicio
05-26-2003, 10:58 AM
More or less:button C should work as button A, refreshing the page in which button A is in and closing the page in which it is in(i did this last thing using ONCLICK="window.close()").The problem is:how button C refreshes page A?
Ugh, I'm not getting you, man... Are you trying to close a window? Open a new one? Redirect an already open one? Or do all three?
khalidali63
05-26-2003, 11:27 AM
I could be wrong,however,it sounds like you wanted something like this..
http://68.145.35.86/skills/javascripts/CloseParentWindowFromChild.html
the second link in the popup window will open a link in the parent window.if thats what you intended to do,just put the code in the link, in the onclick event call of the button.
bicio
05-27-2003, 02:29 AM
Found the solution!!A sript in the page A with a hidden form that posts to the page with target "_top" and in page B a script that links to window.opener.functionName.It works opening the new page in the right target.However thanks to all for support,even if my question was not so clear!!!;)