Most Useful JavaScript Tricks

sumeiko's picture

He has: 147 posts

Joined: Jun 2004

What's your favourite things to do with JavaScript? Just interested to see what everyone says. I probably use the rollover scripts the most, although the clocks are neat.

The most beautiful thing we can experience is the mysterious. It is the source of all true art and science.
- Albert Einstein

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

Main thing I use it for is for formatting data entered in forms. ie. for money values, if they enter 1234.1 and then leave the field, use javascript to format it to read $1,234.10.

-Greg

Busy's picture

He has: 6,151 posts

Joined: May 2001

to go back a page

He has: 1,758 posts

Joined: Jul 2002

Showing and hiding layers. Oh... and form validation.

He has: 13 posts

Joined: Jan 2005

for me, the main use is for form validation and data formating

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

- show/hide layers
- browser compatibility
- form validating

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Yeah, what they all said

- forms
- rollovers
- show/hide layers
- going back a page

the first and last one most often.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.