Use this JavaScript to confirm the closing of a window. It includes a cancel option. A valuable tool for those important popups.
This JavaScript shows how to create a function with an alert and confirmation windows. A basic, important script.
Verify the value of an IP address. Check for special cases such as 0.0.0.0 and 255.255.255.255. Cool!
Takes a series of known named checkboxes and checks or uncheck them all at once. It can even change each checkbox to the opposite checked or not checked value. Clever for loops!
By utilizing a dropdown box, a user can check groups or subgroups of checkboxes.
(Internet Explorer Only) The user no longer needs to click precisely on the checkbox to check and uncheck it. Clicking the text after a checkbox can do this just like windows programs.
Dynamically checks and unchecks all the checkboxes in a form when a button is clicked. Much easier than manually hard-coding the checkbox names, for sure.
This JavaScript simply displays a Windows-XP style progress bar on your page. The bar doesn't really do anything other than give your visitor something to look at while the page loads. Notice how the bar above stopped scrolling after the 4th cycle (refresh the page if you missed it)? More on this later.
This JavaScript shows a progress bar used as a timer. You set the total time for delay. Then set the bar width, height, and colors in the .js code part and the bar "counts" up the amount of time you specified. Note: the script starts only once the page is fully loaded.