Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Only works in new tab, because of limitation of cross-domain AJAX
0
630
posted 15 years ago by angusdev
This snippet is a reemplacement for the parseFloat function of the Javascript language. This new function gets one or two parameters if only one parameter is defined the function is like the original parseFloat. If there are two parameter passed to t...
1
857
posted 15 years ago by amischol
This is my first ever bookmarklet. It's simple and could be tightened up but it works for me (FF3 Ubuntu 8.10).
Oh, by the way, what it does is load gmail (if you're signed in, which I always am) with a search for the unread messages (is:unread)...
0
641
posted 15 years ago by ThomasGHenry
zanox Web Services - Contextual Product Search Widget for blogger.com
0
752
posted 15 years ago by dne
Extracts a string paremeter from the url query string. Basic operation wont handle multiples such as radio buttons etc. Just gets the first instance of the name and returns it's value.
1
680
posted 15 years ago by kouphax
fix for IE, adds getComputedStyle method for the object window and getPropertyValue method for the object, which returns getComputedStyle
1
4168
posted 15 years ago by Jman
One of those common tools that's easy to forget about is the Modulus operator (%), which returns the remainder of a division operation.
If you divide some number by two, a remainder of 0 indicates an even number, while a remainder of 1 indicates a...
1
1930
posted 15 years ago by jlizarraga
Here is a small function [[lobo235](http://www.netlobo.com/javascript_tooltips.html "Javascript Tool-tips")] wrote that will parse the window.location.href value and return the value for the parameter you specify. It does this using javascript's buil...
1
2032
posted 15 years ago by nelsnelson
include document ready and standard code to run swfobject smoothly in IE6
1
869
posted 15 years ago by apro2000
Here's a quick snippet of code to raise the minimum age of your site. Note that it is illegal to lower the legal age of your site under 13.
Legal Disclaimer: Affiliate shall indemnify and hold KickApps, its licensors and each such party's parent o...
0
653
posted 15 years ago by krunkosaurus
Simple function for turning RETURN key presses into TAB key presses. Focuses input element next in the DOM (usually makes sense), unless we are at the end of the form, at which point it focuses the first element in the form for cyclical purposes.
2
2895
posted 15 years ago by kouphax
this function tells you whether or not the passed value is in the passed array
1
896
posted 15 years ago by jlvallelonga
This is a script that can parse a URL string, and return all components in a systematic way via an object.
This script is very useful in places where you want to link to a page "dynamically" generated by javascript. This is usually done by adding GE...
2
1015
posted 15 years ago by jrharshath
cross-browser document.getElementById, should be on top of code.
0
535
posted 15 years ago by sarfraznawaz2005
Rather than using target="_blank", which is deprecated by the W3C in XHTML, you should use rel="external" for links that you want to pop out in a new window. This is the javascript that makes it happen.
0
983
posted 15 years ago by chippper