Click on html element in JavaScript

Hi guys how click div after load page successfully i am using document.getElementById("click").click(); But getting error. So any one can help me.
Ankur Rajput
Asked 30-11-2021
34

Answer (1)
Hi you can use this. document.querySelector('#click').click();TV Tested.
Deepak Sharma
Asked 12-12-2019
45 Likes
Comments
Write comment

Submit your answer