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.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

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