jquery - Use body page like a button -


i use below code use page button problem when click on other buttons function works too, suggest? document.body.onmousedown = function()

jquery example:

// stop bubbling event.stoppropagation(); on inner buttons $("#selector").on('click',function(event){     event.stoppropagation();     // run code });  $("body").on('click', function(){     // run code }); 

Comments