If you mean directly in the href attribute of an anchor element; href isn't an event handler. so that smells worse to me. No I was agreeing with where you had placed it. I had forgotton you can have multiple statements in an onclick attribute seperated by semi-colons.
Attribute of How To Use a (For Creating Hyperlinks) In HTML What does HTML A Href Attribute: A Quick And Simple Guide do? Specifies the linked document, resource, or location.
Hello, I'm having a bit of an issue with onClick(), as I am very new to js and am trying to self-teach in a hurry. Any assistance would be greatly appreciated.
Early event handlers.. you can use whatever case you like. In XHTML attribute names are all lower case, though, so if you use XHTML you must write onclick and onmouseover.. The trick is that you can add this event handling function to any link in the document: it will always report the href of the actual link that has been clicked on.