javascript help #142828
javascript help
#142828
Replies: 2 comments 1 reply
-
Here's a way to make your button click twice in a row with some tweaks to ensure it works smoothly: Updated Code:function click2() {
const btn = document.getElementById("buttonenregistre");
// Simulate first click
btn.click();
// Use a brief delay before the second click
setTimeout(() => {
btn.click();
}, 50); // 50ms delay, tweak as needed
} Why This Works:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
goog phank you |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
hello everyone in JavaScript I have a problem I can't click twice in a row in my function its click only once thank you for your answers
function click2()
{
document.getElementById("buttonenregistre").click();
document.getElementById("buttonenregistre").click();
};
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions