Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js click on button

window.onload = function() {
    var userImage = document.getElementById('imageOtherUser');
    var hangoutButton = document.getElementById("hangoutButtonId");
    userImage.onclick = function() {
       hangoutButton.click(); // this will trigger the click event
    };
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #click #button
ADD COMMENT
Topic
Name
9+6 =