<script>
var target = new Date();
target.setHours(9, 30, 0, 0);
function timer() {
var now = new Date();
if (target.getHours() == now.getHours() && target.getMinutes() == now.getMinutes()) {
alert('9.30am task');
// your code for button click
}
else {
setTimeout(timer, 1000)
}
}
timer();
alert('timer started');
</script>
What I have tried:
sir, this code is working properly auto click at sharp 9.30am, but
how i do auto click button sharp at 9.30am without "timer" function , only needed coding