


|
Did you learn something? Do you like the site? Please link to us! |
|
|
|


Doc JavaScript's Top 20 Tips
based on hits from Friday, November 20, 2009
- 1. Iterating over an Object's Properties
- You get an object and you don't know its constructor. Do you know how to find its property names? Learn how to iterate over an object's properties.
Related categories: Applications and Games | Objects | Syntax and Notation
Similar Tips - March 5, 2001 - Page Views: 57
- 2. Passing Parameters in JavaScript
- What's the difference between passing a parameter by value and passing by reference? Learn why you cannot change a variable by modifying it inside a function.
Related categories: Debugging | Numbers | Syntax and Notation
Similar Tips - February 10, 2001 - Page Views: 50
- 3. Using Response.Write()
- Do you know how to display information from ASP.NET pages? Learn how to use Response.Write() from JScript .NET code.
Related categories: Applications and Games | Dynamic HTML | Objects
Similar Tips - August 27, 2002 - Page Views: 49
- 4. The setExpression() Method
- Can you name an IE5 feature that makes animation programming easier? Learn how to assign formulas to properties with the setExpression() method.
Related categories: Dynamic HTML | Internet Explorer 5.0 | Page Layout
Similar Tips - July 19, 2000 - Page Views: 45
- 5. A JavaScript Visitor Counter
- Real programmers write their own visitor counter. Here is a version that uses JavaScript cookies.
Related categories: History and Cookies
Similar Tips - March 30, 2000 - Page Views: 35
- 6. Scripting Multiple Elements with the Same ID
- Some applications require different elements with the same ID. Learn how to distinguish between them in your script.
Related categories: DOM | Dynamic HTML | Syntax and Notation
Similar Tips - September 21, 2000 - Page Views: 35
- 7. Incrementing the Current Zoom Factor
- Do you know how to zoom in and out without prompting the user for the zoom factor? Learn how to increment and decrement the current zoom factor.
Related categories: DOM | Page Layout | Style Sheets
Similar Tips - October 7, 2001 - Page Views: 33
- 8. Finding a File's Name and Path
- What's in a name? Learn four different ways to find a file's name and path.
Related categories: Objects | Operators | Syntax and Notation
Similar Tips - November 4, 2000 - Page Views: 29
- 9. Changing the Cursor
- Find out how to change the style of the cursor with style sheets and JavaScript.
Related categories: Page Layout | Style Sheets
Similar Tips - November 29, 1999 - Page Views: 27
- 10. Form Validation
- How do you make sure that applicants are high school graduates? Learn how to check form fields before submitting it.
Related categories: Forms
Similar Tips - January 24, 2000 - Page Views: 24
- 11. Setting the Cookie's Expiration Date
- Do you know what's the default expiration date of a cookie? Learn how to set it with our setCookie and getCookie functions.
Related categories: History and Cookies | Objects | Syntax and Notation
Similar Tips - February 25, 2000 - Page Views: 24
- 12. Calling Web Services from JavaScript
- Do you know how to call a Web service from JavaScript? Learn how to call the DHTML webservice behavior.
Related categories: Behaviors | Dynamic HTML | Objects
Similar Tips - July 15, 2002 - Page Views: 24
- 13. Loading XML from JavaScript
- Do you know how to load an XML file from JavaScript in Internet Explorer? Learn how to create the DOMDocument object and how to print the XML data.
Related categories: Behaviors | Dynamic HTML | Objects
Similar Tips - January 16, 2002 - Page Views: 23
- 14. The null Value
- Do you know how to use the null value? Learn how to take advantage of it.
Related categories: Numbers
Similar Tips - October 2, 1999 - Page Views: 23
- 15. Preparing a Form for User Corrections
- Do you know how to prepare a form for error correction by the user? Learn how to use the select, blur, and focus methods.
Related categories: Events | Forms
Similar Tips - August 5, 2000 - Page Views: 22
- 16. Preventing Double Payments
- Do you know how to prevent the user from clicking the Charge Me button twice? Learn how to disable a button after its first click.
Related categories: Behaviors | Dynamic HTML | Objects
Similar Tips - February 1, 2002 - Page Views: 22
- 17. Displaying An Hourglass Cursor While Waiting
- Do you know how to ask the user to wait patiently until a task is done? Learn how to convert the mouse shape to an hourglass, and then back to normal.
Related categories: Behaviors | Dynamic HTML | Objects
Similar Tips - March 23, 2002 - Page Views: 22
- 18. Mailing a Web Page
- Wouldn't be nice to share this tip with someone? Learn how to send the current page to your friend.
Related categories: Dynamic HTML | Links | URLs and Locations
Similar Tips - August 22, 2000 - Page Views: 21
- 19. Retrieving Element Event Location
- Which element had triggered this event? Learn how to find the object that had asked for this event.
Related categories: Browser Compatibility | Events | Netscape 6
Similar Tips - January 22, 2001 - Page Views: 21
- 20. File I/O
- Do you need any more proof that JavaScript is a real programming language? Learn how to write a script that will create a new file and write to it.
Related categories: Objects | Operators | Syntax and Notation
Similar Tips - October 31, 2000 - Page Views: 20
|
|
|