Is there anyway in JavaScript which emulate user clicks an anchor?
Mozilla(Firefox ) does not implement that.
https://developer.mozilla.org/en/DOM/element.click
But is there any browser which does?
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.
The
click()function is not supposed to navigate to the href of the link. The jQuery’s one also doesn’t. Theclick()function will however fire all functions attached to theclickevent /onclickattribute. To change the window location to be the link href’s one, just doYou can even go a step further:
MSIE does it (incorrectly).