Skip to content

24 ways to impress your friends

Vote down?


Is there a way to attach the javascript to a link without actually inserting in the HTML through href or onclick? I thought unobtrusive javascript was the big thing, separating content from behavior and all with the DOM…

Also, how would you set the class in javascript?