matthewkerry.com
Code and Scripts
Over the coming weeks, months and years I will be putting as much HTML/JavaScript/other code as I can online. Some of it comes from previous projects, some from little help ditties I've produced for people. I hope you find them useful!
Compare two (2) form values and see if they're the same
A form with 2 textboxes which on submit using JavaScript will check the values are the same. If the values don't match the form will prompt the user that the values are different, else it will submit the form.
How to display a page title in a frames based site
One of the "features" of frames is that the page title diplayed is taken from the frameset page rather than the content page. Here's a one liner piece of script to get the title you want!
Programmatically invoke the Find dialog box
Make it appear using Javascript.
Clear a textfield when a user clicks on it
Useful if you want to display some default text to the user.
Table borders in css
As seen in my nav bar.
Auto-complete drop down list behaviour
That clever thing in Firefox that moves you down a list as you type - now available in IE!