Coding Tips (JavaScript/CSS/VBA/Win32)
Useful code snippets, tips and some Windows applications
Here you will find some tips for JavaScript deveopers.
How to use cookies to remember values typed into a text boxJavaScript Formatting Functions
A Javascript function to format a number.
A Javascript function to remove a cents portion from a number.
A Javascript function to insert a backslash before a double quote.JavaScript Trim Function
A Javascript function to trim a string, left and right.JavaScript Tips
How to prevent the Enter button from submitting the form in Internet ExplorerMore JavaScript Tips
How to keep the focus on an invalid field
Make a text-box read-only
Disable Right Button Click On ImagesCSS Tips
Check if a Variable Exists
Passing Arguments to The Onload Event Function
Change text-box background colorDOM
How to right-align text in the HTML text-box
Edit In Place - Turn a text entry into an HTML input tag dynamically
Validation (Regular Expressions)
Regexp Number Pattern for JavaScriptThis number pattern supports optional decimals and the minus signVarious regexp patterns
Regular Expression patterns for time, date, zip/postal code, social insurance number and currencyFunction to allow numbers only
Users can type numbers only in a text-boxCurrency/Number Validation function
This function will return true if the parameter value is a currency or a numberVery useful JavaScript validation routines by Karen Gayda
A MSDN article on validation
Links
Top-rated JavaScript books from Amazon.com
Sorting HTML Tables using Javascript
An extensive JavaScript Form FAQ Knowledge Base from It.org