How to simulate a click event without the user actually clicking on the element

Asked

Viewed 63 times

0

I would like to simulate onClick in some element, but without the user clicking on the element, for example, the user presses Enter and the event triggered is the same as clicking on a particular element of the page, is there any way to do this? Can be in pure JS or Jquery

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.