The onClick event on the referesh button for the Captcha won’t work when I click it, but this button works well when I open the Inspect mode in Chrome and click it, refreshing the captcha as expected. Here is my HTML code : Here is a screenshot of my UI : What could be the problem in my case ?