Initiate Google sign in on button click
问题 Hello I am using google api to sign in to my web application . Now Its working fine . But the problem is the sigin is initiated automatically as I go to my log in page . But I do not want that . I want the user to click the signin button first then the process will start . I am using below button <div class="g-signin2" data-onsuccess="onSignIn"></div> and google log in references . 回答1: Use 'attachClickHandler' to Initiate Google Sign In. <script src="https://apis.google.com/js/client