Here I am doing a basic trigger example but jquery is unable to execute it. I know jquery has some issues with such kind of trigger but isn’t there any solution for the same.
Demo of code: jsfiddle
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.
To trigger a click object, just do this:
This will only work though if the click() function has been already bound by jQuery, but may be what you’re looking for.
Otherwise, if you’re trying to open a new window using javascript, use
window.open('url','_blank','width=100,height=100');Instead of
window.locationlike the others have posted, this will not open in a new target window.There are also many more attributes you can set for the opening window in addition to
widthandheightin the example above.