I am having this code:
<a href="" onclick="return false;" class="submitme">Add</a>
is there any way to make an alert whenever the user will press this button without changing the code or adding onclick event?
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.
As the OP states that they are not allowed to change the HTML, and that jquery is not available to them.
Not having an ‘id’ on the link makes life very difficult. So the following code presumes the link is the very first one on the page…
Place this javascript into the
<head></head>section of your page…See Live JSFiddle Demo