469,909 Members | 1,732 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

Any reason for both onlick="window.open" and target="_blank" in same link?

I'm going through some old code and have found this a number of
places. Seems kind of strange. Is there any reason why someone would
do this?
Jul 20 '05 #1
1 1787
Nick Messick wrote on 06 feb 2004 in comp.lang.javascript:
I'm going through some old code and have found this a number of
places. Seems kind of strange. Is there any reason why someone would
do this?


Sure, for if javascript is disabled:
<a href="http://MySite.org/" target="_blank"
onclick="window.open(this.href);return false">
MyLink</a>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by St. Rechsteiner | last post: by
43 posts views Thread by Dimitri Debruyne | last post: by
10 posts views Thread by Roland | last post: by
44 posts views Thread by Viken Karaguesian | last post: by
5 posts views Thread by John A Grandy | last post: by
28 posts views Thread by Jim Carlock | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.