function handle(){......} in jquery...">

Maybe jackery hijacking

There are two ways to handle click events in JS

<span onclick="handle()"></span> function handle(){......} 

in jquery

 <span class="handle"></span> jQuery('.handle').click(function(){ ..... .... }); 

so I want to ask attaching a click event, as done above in jQuery, this is bad practice
this is called capture

+5
source share
1 answer

No .click itself cannot be “hacked” or “hijacked” to harm your site.

Any chance of being captured will come from the function you wrote, but it will be complicated if all the functions are client-side. JQuery is very safe.

+2
source

All Articles