D
Dr J R Stockton
I have a Web javascript page, and if a certain test gives true I would
like to disable the page by executing a javascript function.
By that, I mean that it should remain readable, scrollable, etc., but
the input controls will not have the usual effect. However, suppressing
any means of view source or save as is undesirable; and at least one
obvious way of saving a copy must remain working (cache search does not
count).
There are (currently) 10 buttons, 1 textarea, and 5 input type=text to
suppress.
It would be sufficient to disable all button onClick routines, but it
would be nicer to render the buttons un-depressable or visually non-
working (but readable) and the text inputs also unreceptive.
Maybe a sort of layer over everything, for which all events do nothing?
Suggestions?
like to disable the page by executing a javascript function.
By that, I mean that it should remain readable, scrollable, etc., but
the input controls will not have the usual effect. However, suppressing
any means of view source or save as is undesirable; and at least one
obvious way of saving a copy must remain working (cache search does not
count).
There are (currently) 10 buttons, 1 textarea, and 5 input type=text to
suppress.
It would be sufficient to disable all button onClick routines, but it
would be nicer to render the buttons un-depressable or visually non-
working (but readable) and the text inputs also unreceptive.
Maybe a sort of layer over everything, for which all events do nothing?
Suggestions?