Click to See Complete Forum and Search --> : pop-up links question


redbear
10-10-2003, 07:37 PM
ok...i'll try to explain this as best as i can...

on a particular webpage,(page A) this link will pop-up a window with some particular content (page B). on the page that is in the pop-up, there are links on it.

how can i have a link on Page B open up a page in page A and close page B at the same time ...??

jrbp
10-10-2003, 07:56 PM
Heres the code:
put this on page A
<a href="pageb.html" onclick="newwin('this.href','name')">Page B</a>
put this on page B
<a href="pagea.html" onclick="window.close()">Page A</a>

jrbp
10-10-2003, 08:00 PM
<a href="pageb.html" onclick="window.open('this.href','name')">Page B</a>

sorry typed the wrong thing

mf22cs
05-19-2004, 03:22 PM
Well... first of all... there should not be any singel-quote-mark around "this.href".

But the code has a major malfunction. It goes to the href in both opens a new window and in the parant window.

/marcus