Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged load
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
You can put the user's cursor inside a text box or put focus on select box as soon as your page is loaded. This helps ensure that visitors do not 'overlook' an important form item on your site and this snippet only uses one line of code!
0
1789
posted 12 years ago by apphp-snippets
Link body class names to trigger javascript. It requires jQuery.
0
1802
posted 15 years ago by cmndo
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#".
So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0
1709
posted 15 years ago by disas
A more flexible version of the 'official' Facebook feed dialog example.
"The Feed Dialog prompts the user to publish an individual story to a profile's feed. This does not require any extended permissions."
"The following simple JavaScript exam...
0
1683
posted 15 years ago by coprolit
It is utterly annoying when DOM event handler exceptions fail silently with Firebug. This package fixes this common problem.
0
1479
posted 17 years ago by miohtama
The setTimeout ensures that if there is an issue attaching the link to the bottom of the head (e.g. if the head hasn’t finished loading when the link is trying to be attached) it retries after 100ms. Resetting the css variable to null avoids potent...
1
2306
posted 18 years ago by natalie
« Prev 1 Next »