Can I use the following across all browsers?
<a href="#" onclick="doSomething()">Click here.</a>
Is this “bad practice” in regards to standards?
Will it work on IE, FF, Safari and Chrome?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes
“Bad practice” and “Standards compliance” are different things. It is standards compliant, but also, for three reasons, bad practice.
#) and will always send the browser there, even if the JS runs.Yes