Tutorial :Jquery - Stop clicking before the document is ready



Question:

I want to stop click on any links until the page is loaded.

Can you help me how to do this? Thanks.


Solution:1

  var donclick=true;  $(document).ready(function () {    dontclick=false;  }  $(document).click(function(e){    if(dontclick && e.target.tagName=='INPUT') e.preventDefault();   });  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »