Click document the call () method, the following specific examples:
html
<a id="a" href="www.baidu.com"></a>
js
var link = document.getElementById('a');
//调用document的click()方法即可
link.click();
Click document the call () method, the following specific examples:
html
<a id="a" href="www.baidu.com"></a>
js
var link = document.getElementById('a');
//调用document的click()方法即可
link.click();