View Full Version : two commands with one txt link from pop-up

01-21-2005, 12:54 AM

Okay, I've been trying to figure this out for two days and so far I have 1/2 of it working properly. Here's the deal.

I have a txt link, when you click that txt link on a pop-up window I want the parent.window to refresh to a different page and at the same time I want the pop-up window to close. I have it to where the parent window refreshes, but now the pop-up window stays up, but it doesn't display the contents, it refreshes itself to a blank white screen with the code I've been trying to use in it. This is my code:

<a href="javascript:opener.top.location=('http://www.outindenver.org/beon.htm'); this.src='top.window.close()'">Be On the Show </a>

It does the opener part, but I just can't get the stupid pop-up to close. If not close at least make it show the contents that was originally in it, not this other blank screen.

Please help!!

Thank you,

Troubled Java

01-21-2005, 02:03 AM

I had to put a onclick command after it. OH THANK GOD! FINALLY!