javascript - Trigger mouse click on a button each 5 seconds -


how trigger mouse click on element (slider "next" button) each x seconds?

i have built website in adobe muse, slider widget doesn’t have auto play function, , i’m trying make next button click each 5 seconds simulate autoplay. i’ve found class button

<div class="fp-controlarrow fp-next"></div> 

maybe there chance trigger clicking somehow? thanks

use setinterval():

setinterval(() => {   element.click() }, 5000) 

where element reference dom element.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -