Click a button programmatically - JS

前端 未结 5 1733
忘掉有多难
忘掉有多难 2020-12-01 17:40

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

5条回答
  •  借酒劲吻你
    2020-12-01 18:09

    The other answers here rely on the user making an initial click (on the image). This is fine for the specifics of the OP detail but not necessarily the question title.

    There is an answer here explaining how to do it by firing a click event on the button ( or any element ).

提交回复
热议问题