JavaScript Sample Code
-
Navigating backwards/forwards
by Kiran Pai
This script shows you how to emulate the Browsers Back-Forward buttons
-
Multiple Submit Buttons
by Kiran Pai
This script shows you how to submit the contents of a form to different programs depending on which Submit button you press.
-
Automatically check/uncheck multiple checkboxes
by Kiran Pai
Allow a user to easily uncheck and check all the checkboxes on a form
-
Open a new window
by Kiran Pai
How to open a page (existing as well as dynamic) in a new window without bars, buttons, etc.
-
Pre-load Images
by Peeyush Nigam
Some simple javascript to pre-load images on a web page
-
Cascaded Menu
by Arun Kumar
A fully customizable JavaScript cascading menu for IE 4.0 or later
-
Change Text Field Colors
by Super Tal
This function will change the colors of a form text box field.
-
Visitors' Browser Information
by James Crowley
How to get information about the visitors browser
-
Optional Arguments in JScript
by James Crowley
How to create optional arguments in JScript
-
Detect missing images with client-side script
by James Crowley
How to detect missing images with client-side javascript
-
Don't explicitly set the page language in ASP
by ElementK Journals
Why you shouldn't explicitly set the page language in ASP
-
Encoding your script files
by ElementK Journals
Protect both your server-side and client-side scripting by using the MS encoding utility