Wisdom

Dude, Most awesome thread ever, courtesy of jwz. I truly admire how rapidly and cleanly he carves people into little bits. The meat of it:

Hint to idiots who think that using <A HREF=”javascript:…”> is a good idea:

    It’s not.

    But if you insist on going down that dark road, do it like this instead:
    <A HREF=”http://real-url…” OnClick=”thingy(); return false”>. That makes left-click do your JS BS, but lets middle-click do something sane, and also lets your page continue to function if JS is turned off. And spiders work, and bookmarks work, and basically you avoid ass-fucking the web. Ok? Thanks.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.