Denver WordPress Design by Chris Strom, LLC

This is a collection of free Javascript code snippets. We have scripts setting the default focus on page elements (useful for HTML forms), scripts to auto-jump to the next form field when the current form field is full, and scripts to display the current date and time, reload the web page, print the web page, view the page source, close the browser window, and go back to the browser's previous web page. As time goes on we will be adding additional Javascript code snippets and other free Javascript resources.

All code listed here is public domain unless otherwise noted.

Default Input Focus

Example:

Click here to see an example

Source Code:

Reload Page Button

Example:

Source Code:

Auto-Jump to Next Form Field

Example:

Click here to see an example

Source Code:

Go to Previous Page Button

Example:

Source Code:

View Page Source Button

Example:

Source Code:

Close Window Button

Example:

Source Code:

Show Current Date and Time

Example:

Click here to see an example

Source Code: