Click here to Skip to main content
15,113,245 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionA button at html to trigger an autoplay audio at exact time Pin
Member 1526543828-Jun-21 0:42
MemberMember 1526543828-Jun-21 0:42 
QuestionRe: A button at html to trigger an autoplay audio at exact time Pin
Richard MacCutchan28-Jun-21 1:06
mveRichard MacCutchan28-Jun-21 1:06 
AnswerRe: A button at html to trigger an autoplay audio at exact time Pin
Member 1526543828-Jun-21 1:11
MemberMember 1526543828-Jun-21 1:11 
GeneralRe: A button at html to trigger an autoplay audio at exact time Pin
Richard MacCutchan28-Jun-21 1:24
mveRichard MacCutchan28-Jun-21 1:24 
AnswerRe: A button at html to trigger an autoplay audio at exact time Pin
Richard Deeming28-Jun-21 5:06
mveRichard Deeming28-Jun-21 5:06 
GeneralRe: A button at html to trigger an autoplay audio at exact time Pin
Member 1526543828-Jun-21 23:11
MemberMember 1526543828-Jun-21 23:11 
GeneralRe: A button at html to trigger an autoplay audio at exact time Pin
Richard Deeming28-Jun-21 23:25
mveRichard Deeming28-Jun-21 23:25 
QuestionHow to merge to javascripts to test in console? Pin
ajaszin18-Jun-21 15:52
Memberajaszin18-Jun-21 15:52 
Hi,
I am new to js and might be a silly question. sorry for that as I started to learn JS.

I have made 2 scripts. 1 for autoclick buttons and another 1 for autoclick nextpage button.
How to merge both codes to one after one. also I need to set 5 seconds delay between both this scripts.

Script 1:
var buttons = document.getElementsByClassName('Polaris-Button');

    for(var i = 0; i <= buttons.length; i++)  
       buttons[i].click();



Script 2:
var btn = document.getElementsByClassName('ant-pagination-next');

    for(var s = 0; s <= btn.length; s++)  
       btn[s].click();


Thanks in advance.
AnswerRe: How to merge to javascripts to test in console? Pin
Richard Deeming21-Jun-21 0:45
mveRichard Deeming21-Jun-21 0:45 
GeneralRe: How to merge to javascripts to test in console? Pin
DerekT-P21-Jun-21 10:22
professionalDerekT-P21-Jun-21 10:22 
GeneralRe: How to merge to javascripts to test in console? Pin
Richard Deeming21-Jun-21 22:49
mveRichard Deeming21-Jun-21 22:49 
GeneralRe: How to merge to javascripts to test in console? Pin
DerekT-P21-Jun-21 23:50
professionalDerekT-P21-Jun-21 23:50 
QuestionAddEventListener in vanilla Javascript Pin
jkirkerx16-Jun-21 15:52
professionaljkirkerx16-Jun-21 15:52 
AnswerRe: AddEventListener in vanilla Javascript Pin
jkirkerx17-Jun-21 12:16
professionaljkirkerx17-Jun-21 12:16 
AnswerRe: AddEventListener in vanilla Javascript Pin
jkirkerx19-Jun-21 12:24
professionaljkirkerx19-Jun-21 12:24 
AnswerRe: AddEventListener in vanilla Javascript Pin
Richard Deeming21-Jun-21 0:42
mveRichard Deeming21-Jun-21 0:42 
GeneralRe: AddEventListener in vanilla Javascript Pin
jkirkerx21-Jun-21 7:26
professionaljkirkerx21-Jun-21 7:26 
GeneralRe: AddEventListener in vanilla Javascript Pin
Richard Deeming21-Jun-21 7:31
mveRichard Deeming21-Jun-21 7:31 
GeneralRe: AddEventListener in vanilla Javascript Pin
jkirkerx21-Jun-21 7:41
professionaljkirkerx21-Jun-21 7:41 
GeneralRe: AddEventListener in vanilla Javascript Pin
jkirkerx21-Jun-21 7:58
professionaljkirkerx21-Jun-21 7:58 
Questionhow to limit the draggable area in snap.svg? Pin
Member 1269897212-Jun-21 21:45
MemberMember 1269897212-Jun-21 21:45 
QuestionI am getting the following error while trying to run ./watch for my Ember JS application Pin
simpledeveloper1-Jun-21 20:44
Membersimpledeveloper1-Jun-21 20:44 
AnswerRe: I am getting the following error while trying to run ./watch for my Ember JS application Pin
jkirkerx16-Jun-21 15:58
professionaljkirkerx16-Jun-21 15:58 
QuestionHow To Use Dynamic variable in Javascript Pin
pranay kumar 202127-May-21 4:14
Memberpranay kumar 202127-May-21 4:14 
AnswerRe: How To Use Dynamic variable in Javascript Pin
jkirkerx16-Jun-21 16:01
professionaljkirkerx16-Jun-21 16:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.