Quick Question.
Should we put Javascript in the HREF or use onClick (event)?
Are there any pros/cons to using either one. Personally I think it\'s easier/cle
Keeping the code separate from the html is cleaner IMO.
Click Me
Then in head or separate js file:
document.getElementByID("foo").onclick = function() { alert("hi"); }