This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: 63331

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] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: disable screen elements
jQuery in Action, 3rd edition