-4

Can you tell me the source code that automatically presses the button on the side with JavaScript code? I'm making it. If you continue to go to the website, you'll automatically go to the site you've linked to.

H.M
  • 1
  • 1
  • Possible duplicate of [How to simulate a click with JavaScript?](https://stackoverflow.com/questions/2705583/how-to-simulate-a-click-with-javascript) – Sterex Feb 13 '19 at 08:54

1 Answers1

0

document.getElementById('goButton').click();
<button type="submit" id="goButton" >Button</button>