I\'ve seen this done in other webapps, but I\'m fairly new to Javascript and can\'t really figure this out on my own. I want to create a Google Hangout programmatically. How
window.onload = function() { var userImage = document.getElementById('imageOtherUser'); var hangoutButton = document.getElementById("hangoutButtonId"); userImage.onclick = function() { hangoutButton.click(); // this will trigger the click event }; };
this will do the trick