I am running a small site and as every web-developer I use Javascript to interact with the client-side.
Currently I have all of my buttons the attribute, onclick=()
that means, when somebody visits my site and inspects the HTML code will find those onclick=()
calls.
I have visited other popular websites, such as StackOverflow, and it seems like they don't use the onclick=()
property for all the buttons.
Is this a securiry flaw? Should I rechange my JS code to just listen
when some button is clicked?
Thanks in advance