JavaScript
Latest Articles
Compare Values with Arbitrary Comparison Operator
JavaScript for comparing values when the operator to use is variable.
JavaScript function and sample code to dynamically compare two values. Accepts numeric and/or alphanumeric values and does a comparison on them based on a comparison parameter.
Manipulating Element Styles Based on CSS Classes Using Prototype
Example javascript function to change element display properties based on their classes using the Prototype JavaScript Framework.
Change HTML Styles with JavaScript
Video and source files on using getElementById, getElementsByTagName and object oriented methods to dynamically change HTML element styles in JavaScript.
Get a Form Element's Label with JavaScript
This JavaScript finds the label for a form element, which is helpful for dynamically highlighting or changing a label based on user input.
Change CSS in JavaScript in multiple browsers
I have updated the popular changecss() JavaScript function to be compatible with most common browsers.
Dynamically change a form's action with JavaScript
JavaScript allows you to dynamically change a form's action. To make the function work in the new Google Chrome browser, you need to reference the action differently than you could in other browsers.
SwfObject JavaScript Error in IE7
IE7 has a JavaScript Error when using the swfobject.js method if you do not give the containing object element an ID.
UseMaps Crash IE When Changed
Dynamically changing an image's usemap property can cause Internet Explorer to crash completely. Here is a solution to changing usemaps with JavaScript.
Add Google Translation Links
Use this free custom JavaScript functions to add links to translate your web pages with the Google translation tools.
Select Radio Inputs JavaScript
A free javascript function to choose radio inputs with a given value.