Table Of Contents
- Always Use ‘var’
- Feature-Detect Rather Than Browser-Detect
- Use Square Bracket Notation
- Avoid ‘eval’
- Reference Forms and Form Elements Correctly
- Avoid ‘with’ Statements
- Use onclick In Anchors Instead Of javascript: Pseudo-Protocol
- Use The Unary + Operator To TypeConvert To Number
- Avoid document.all
- Don’t Use HTML Comments In Script Blocks
- Avoid Cluttering The Global Namespace
- Avoid sync “Ajax” calls
- Use JSON
- Use Correct <script> Tags