0

I want to creat target button.

Target button means someone click this button it auto press other position.how I do code it?

25th May 2020, 8:43 AM
STW
1 Answer
+ 1
This is a skeleton example to show the idea. Please show your own code if you want further help. button.onclick = () => {//your click function} target.onclick = () => {button.click() // triggering button click event}
25th May 2020, 9:06 AM
Russ
Russ - avatar