Click to See Complete Forum and Search --> : popup target=_self (sorry for the repeat post)


MeLC
12-09-2003, 02:18 PM
Do you know if there is a "target" attibute for js that works the same as a HTML frame target script?
(I have a popup with links that I need to open pages in)

TheBearMay
12-09-2003, 02:36 PM
If I understand you correctly, you've launched a popup and the source for that page has several links on it, and when clicked you want them to open in the popup?

If so, when you open the popup give it a name, say "popupWin", and then have the links open using that name:

Main window launches using:

window.open("popupsrc.html", "popupWin");

inside the popupsrc:

<a href=# onclick="window.open('link.html','popupWin');">Link</a>