PDA

View Full Version : target="_blank" not working in NS6


sillyfish
03-12-2001, 03:14 PM
Can anyone tell me why, in Netscape 6, "target='_blank'" embedded in a standard <a href> won't work properly?

I have used this method of opening a link in a new window in countless pages, and it works as it should in all previous versions of Internet Explorer and Netscape Communicator.

Why did Netscape 6 have to go and break the gee golly world?

I have found several ways to accomplish the same thing using JavaScript and ASP, but it would be much easier if I just knew why NS6 ignores a W3C standard.

Also, if any of you could point me in the direction of documentation for NS6 on this subject, I would appreciate it immensely!

Thanks for your time...
-Sillyfish

Dr. Web
03-12-2001, 06:24 PM
Yo, silly....
I checked some pages which use target="_blank" and they worked in N6.
check: http://www.volcanic-design.com/design.htm

and click on a pic. They open in new window. Code reads target="_blank"

sillyfish
03-12-2001, 10:21 PM
Turns out I had a javascript function that changed some dynamic text inside a layer. The function was called with an onClick event (inside a standard <a href>) - and it was interfering with the target="_blank". I tested it without the onClick event and it worked fine. Weird, huh? Would you have any idea why an onClick event would interfere with the target="_blank"?

Thanks for the feedback DW
-Sillyfish

Marlboro
03-13-2001, 07:27 AM
Try this reference, its not a bad starting point and its direct from NS:
http://sites.netscape.net/ekrockhome/upgrade/standards.html

Originally posted by sillyfish
Also, if any of you could point me in the direction of documentation for NS6 on this subject, I would appreciate it immensely!

-Sillyfish

Dr. Web
03-13-2001, 01:07 PM
usually when I use an onClick event, I set the href="#". This way I can put the spawning of the new window inside the JS function. Its more organized that way.

something like:

<a href="#" onClick="pop_up();">link</a>

and the onClick calls

function pop_up(){
win = window.open("pop_up.htm", "dep", "height=1,width=1", hotkeys="no");
}

you can also set the a href="javascript: void(0);"

Mooncat
03-14-2001, 01:34 AM
And you can also write
<a href="javascript: pop_up();">