Blunt Browser Window Disabler

This script used to be available from another Web site and was simply called "Browser Window Disabler". You may have been redirected here from that site and you are in the right place.
This class is a significant improvement over the older one and this class is not compatible with the older incarnation.

Download (Total Downloads: 1)
Documentation

Like most of the tools I use, first I try to find something that is quick and easy to use. Unfortunately, I rarely find anything that is acceptable. What I usually find are tools that are either extremely difficult to use or that simply fail to do the job as I need it done. The only ones that seem to work well are those that are part of some framework or another and I simply don't want to install a framework when I will only use one or two functions.... not to mentions my dislike of frameworks and the way they complicate everything.

That was the case with disabling the browser window. We've all seen the like; you click something on the screen and the entire screen dims or grays out keeping you from clicking on anything else until whatever action needs to be done gets done. In many cases this is done in conjunction with showing a modal window of some sort. The modal window might contain a form, or some information and you need to complete some action to move on.

However, what if you just want to disable the window for some other reason? Maybe you are dealing with an extremely slow mail server on your host and you need to make people wait so they don't click that submit button over and over again because nothing appears to be happening. Maybe the server isn't slow but your visitors still don't understand that they don't need to double-click that D@|v||\| button.

This script is designed to do only one thing; disable, or gray out, the browser, and keep it disabled. This JavaScript class is extremely small and there are only three properties and two methods.

For information on it's use please see the documentation and the example page.

If you find this script useful, please let me know and if you have the inclination, a link back to this page would be greatly appreciated. Also, if you have any input about this script or you find a bug, please let me know that as well.