By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,946 Members | 1,610 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,946 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.