Should I put a Semicolon (;) when I use onclick=""
The semicolon in this position, is valid, but not mandatory.
It is good practice to include it, since if you decide to add other statements after the call, it is clear and easy to do so. However, the code will run either way.