How can I disable links that redirect to other pages until they check the agree box
Please give me an idea/code on how I can disable links which redirect to other pages. I need the user to check an "agree" checkbox before they can click on the links.
If you are not redirecting the users to other pages using your server-side code, then you'll have to implement a client-side solution to solve this problem.
You could handle the JavaScript onbeforeunload event to prevent the page from unloading if they user hasn't checked the "agree" checkbox.
Comment