P
Paolo Mancini
Hi all,
I have a page with many different elements: <a href="...."> ... </a>,
listboxes, radiobuttons, etc.
Can I use javascript to prevent the user from interacting with the
page? That is: can I intercept, alert the user, and cancel any click
event on the page?
Unfortunately, if the user clicks on a page element, the event bubbles
up from the element up in the hierarchy to the document, not
viceversa. I would like to intercept click events at document element
BEFORE they fires on the objects.
I know for example that onclick="return false" cancels events for <a>
elements, but still the user is able to interact with <select>
objects.
I have tried to place a large, transparent <DIV> with z-index=1000,
capture the onclick event and cancel it, but it doesn't work. Any
suggestion?
Regards,
Mauro
I have a page with many different elements: <a href="...."> ... </a>,
listboxes, radiobuttons, etc.
Can I use javascript to prevent the user from interacting with the
page? That is: can I intercept, alert the user, and cancel any click
event on the page?
Unfortunately, if the user clicks on a page element, the event bubbles
up from the element up in the hierarchy to the document, not
viceversa. I would like to intercept click events at document element
BEFORE they fires on the objects.
I know for example that onclick="return false" cancels events for <a>
elements, but still the user is able to interact with <select>
objects.
I have tried to place a large, transparent <DIV> with z-index=1000,
capture the onclick event and cancel it, but it doesn't work. Any
suggestion?
Regards,
Mauro