Wednesday, June 5, 2024
 Popular · Latest · Hot · Upcoming
99
rated 0 times [  102] [ 3]  / answers: 1 / hits: 53288  / 15 Years ago, wed, august 19, 2009, 12:00:00

How can we disable all the elements in html through javascript.The easiest way...


More From » html

 Answers
67

I suggest to do it the Lightbox-style way.



Add an absolute positioned, transparent, full screen div Layer above the Page.
This way, the user can't even click on a Link.



To give the user a visual feedback that the page is disabled,
you can make the div e. g. 50% transparent black.



BTW, here is also a jQuery Plugin that uses a similar technique.


[#98882] Friday, August 14, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
robertjaysona

Total Points: 276
Total Questions: 110
Total Answers: 116

Location: Finland
Member since Sat, Nov 6, 2021
3 Years ago
robertjaysona questions
;