File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes disable screen elements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disable screen elements" Watch "disable screen elements" New topic

disable screen elements

Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
anyone know a way to disable all the screens elements in a single line?
I know that we can do it in a loop but is there a way to disable all the elements by writing just one line and without using the loop?
something like document.all.disabled = true

Life called,so here I am.<br />Cheers<br />Niki.:-)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

No, but you might be able to fake it by creating a floating transparent div over the whole screen that eats all the events.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: disable screen elements
It's not a secret anymore!