This JavaScript will open a confirm dialog when visitors make any process.
Dynamically checks and unchecks all the checkboxes in a form when a checkbox is clicked. Much easier than manually hard-coding the checkbox names, for sure.
If you'd like to present your visitors with a JavaScript quiz, this script would be perfect. It administers and scores the test, and even catches the user if they try to cheat! You can even make additional quizzes for it to continue with after the first quiz.
You have probably seen other find and replace scripts that use Range or TextRange objects to find and replace text, or indexOf() and substring() to manipulate the text, but this is a third way to do that, which is via the split() and join() methods.
Is the user pressing the 'Enter' key in the middle of your form causing inadvertent and incomplete form submissions? This script disable the 'Enter' key when pressed inside chosen fields of your choice. Moreover, it then advances the cursor to the next field within the form. Very useful.