Link not working in Netscape...

S

sihnstarr

I have a pop-up window that contains a chart with a list of links.
When the link is clicked, it is supposed to close the pop-up window and
navigate to the page selected from the pop-up in the parent window.
This works in IE but not in Netscape 7, 4 or Firefox.

Here is a sample of the link code:

<a href="blah.asp" class="otherlinks_sm" target="parentContent"
onMouseUp="javascript:self.close();">The Link</a>

I did read that Netscape and Mozilla based browsers have a problem with
using onMouseUp on anything but form field objects. Is there a
workaround for this?
 
L

Lee

sihnstarr said:
I have a pop-up window that contains a chart with a list of links.
When the link is clicked, it is supposed to close the pop-up window and
navigate to the page selected from the pop-up in the parent window.
This works in IE but not in Netscape 7, 4 or Firefox.

Here is a sample of the link code:

<a href="blah.asp" class="otherlinks_sm" target="parentContent"
onMouseUp="javascript:self.close();">The Link</a>

I did read that Netscape and Mozilla based browsers have a problem with
using onMouseUp on anything but form field objects. Is there a
workaround for this?

The link is activated by the mouse click, which is the mouse button going down
and then back up again. You're telling the window to close as soon as that
button comes up. The fact that it works in IE is a fluke of their
implementation.

onclick="setTimeout('self.close()',100);return true"

might work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top