Firefox keyboard monitor test for Mac OS X

Test 5: JavaScript with Prototype using document.observe ('dom:loaded'...) and the extra wrinkle

This is exactly the same as Test 3 except that the JavaScript has been rewritten to use the Prototype library which, besides many much deeper benefits, makes the code so much simpler and more manageable. It also, very importantly, uses a different, DOM-based approach to setting up handlers when the page loads.

Here the Prototype version of Test 4's JavaScript allows the form to be submitted only if there's something in both fields, and there's the extra function which removes the focus from the password field when submitting the form. Also, the Prototype version appears not to cause problems with IE... which is nice.

Try submitting the form in the three possible ways and this time you should get the same result with Typinator each time. Try it and see...