I have button A with
onclick = "alert(1);"
And button B.
How to do, when I click on button B , it should call event on button A ?
click B -> eventB -> eventA
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.
HTML:
JavaScript:
Live demo: http://jsfiddle.net/TaPWr/1/
Update:
If the Button B is inside an IFRAME then use the
topobject to reference the window object of the “parent” page. The IFRAME code would be like so: