I need to disable any activity on a web page before a flag is set. Let's ignore the flag and say I just want to disable any clicking on the page forever. I thought it would be as simple as:
$(window).click(function(e) {
e.preventDefault();
});
Given the above, I can still, however, click links just fine.
How can I render all clicking inert?