eSnippets.net, a code gallery for creating, saving and sharing all kinds of code snippets.

Snippet Code Type — Javascript 7 results found

Redirect with a Timer Javascript 917
Author: Rene Posted On: Saturday, April 25, 2015 at 11:21 PM

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can also add a timer to the script that will allow the page to redirect automatically after x seconds.

Scroll To Top Javascript 887
Author: rpjs Posted On: Friday, April 3, 2015 at 2:03 AM

Jquery script to scroll to the top of page.

Decimal to hexadecimal converter Javascript 824
Author: rpjs Posted On: Friday, April 3, 2015 at 1:44 AM

Convert decimal numbers to hexadecimal with this simple javascript function.

Strip Whitespace From String Javascript 612
Author: rpjs Posted On: Saturday, May 10, 2014 at 9:52 AM

Whitespace, meaning tabs and spaces.

Format Currency Javascript 622
Author: rpjs Posted On: Saturday, May 10, 2014 at 9:50 AM

This function will round numbers to two decimal places, and ensure that the returned value has two decimal places. For example 12.006 will return 12.01, .3 will return 0.30, and 5 will return 5.00

Clear Field on Focus Javascript 614
Author: rpjs Posted On: Saturday, May 10, 2014 at 9:48 AM

Replace "value" with the default value. If the field is selected, the default value will go away. If the user has previously changed the field value, it'll be left alone.

Array of Country Names Javascript 630
Author: rpjs Posted On: Saturday, May 10, 2014 at 9:47 AM

This will save you time, now you do not need to write all country names.