Delayed Link Opening
And here’s the anchor html code that would be used:
< a id="link1" class="link" onclick="return validate(link1)" name="link1" href="http://www.google.com/" target="_blank">Google< / a>
And here’s what the anchor HTML code would look like:
< a class="link" href="http://www.google.com/" target="_blank">Google< / a>
You can see how it would be much easier to not have to maintain unique IDs for each link that you want to open. The “live” function of JQuery takes care of every anchor that has a class of “link” applied to it. The other nice thing about this is that if you click the link with your middle mouse button to force it to open into a new page or tab, it will do so right away without waiting for animations or anything.