Thank you Paul. I'm not a complete professional, so I want to continue with the code with me. If I continue with another code, it can make me go back to the beginning. Already in the code there is only one problem. The counter does not reset only after the web page is refreshed. A little problem for someone who knows.