The JavaScript Cookbook is a site for common JavaScript problems and solutions. Anyone is welcome to contribute an article.


June 20, 2013 was launch day! Since the initial launch I've added a RSS feed and a new "More Info" property. This will be used to link to an article, specification, etc related to the code.

Latest Articles

Get the current URL via JavaScript - 8/15/2013 at 1:45

Restrict a number to a range. - 8/13/2013 at 21:55

Perform date manipulations based on adding or subtracting time - 7/25/2013 at 21:18

Create a clone of an object. - 6/28/2013 at 21:37

Generate an epoch. - 6/28/2013 at 0:56