Click to See Complete Forum and Search --> : problem with link targets


thejoker101
06-24-2003, 04:59 PM
Here is what happens:

I have a page that pops up a small pop-up window. There is a link on that page and when it is clicked, i want the original page to go to the href pointed to by the link and the little window to close.

Here was my solution to it:

I have a .js file with all my javascript functions in it, also in there is a variable declaration: self.name = 'mainwin';. In the pop-up window, in the link, i have a target="mainpage" and a onclick="self.close();"

This workes in IE 6, but doesn't seem to work in Moz 1.3, Opera 7, or NS 7.

Any help?

Jona
06-24-2003, 05:16 PM
Dunno if it will work, but you could try using target="parent" instead...

JΘŋą

thejoker101
06-24-2003, 05:20 PM
nope.

Jona
06-24-2003, 05:22 PM
Oops, I mean target="_parent"

JΘŋą

thejoker101
06-24-2003, 06:00 PM
I knew what you ment, but still nope.

Jona
06-24-2003, 06:02 PM
Got a link to the site?

JΘŋą

thejoker101
06-24-2003, 07:13 PM
http://www.the17thdegree.com/the17thdegree/index2.jsp , once there, click on the link named "TheJoker", a small pop up window comes up, then click full bio, it should close the pop up window, then go to the bios.jsp page, it does this in IE6, but nothing else it seems.

Jona
06-24-2003, 07:40 PM
First of all I'd like to congratulate you on a nice site design (like the colors). ;)
About your problem, since the person could only use Javascript to open the window, they would have to have Javascript otherwise they wouldn't see it. So we know they have Javascript enabled. So what we do is use onClick="opener.location.href='bios.jsp';"

JΘŋą

thejoker101
06-24-2003, 07:46 PM
Sweetness, it works, take a look, thanks. :-)

Jona
06-24-2003, 07:53 PM
You're welcome. lol

JΘŋą