A little dab'll do ya
Code Snippets
Home » Code Snippets » JavaScript
- “Go Back” Button
- 1024×768 Bookmarklet
- Add To Favorites (IE)
- Auto Select Textarea Text
- Basic Alert
- Call Function with Random Timer
- Check if Number is Even/Odd
- Clear Field on Focus
- Comments in JavaScript
- CSS for when JavaScript is Enabled
- Current Page with JavaScript
- Detect Internet Explorer
- Detect Javascript On/Off, With Notification
- Different Stylesheet Pending the Time of Day
- Different Stylesheets for Different Days of the Week
- Empty an Array
- Error-Free Firebug Logging
- Format Currency
- Get URL and URL Parts in JavaScript
- Get URL Variables
- Get YouTube Key from a Link
- Global Variables
- htmlEntities for JavaScript
- Input with Disappearing Background Image
- Intervals
- JavaScript Array Contains
- JavaScript MD5
- JavaScript Required Content with Fallback Content
- Loop Through Array Without Wasteful Lookups
- Make HTML5 Elements Work in Old IE
- Modern Event Handling
- Multiline String Variables in JavaScript
- Namespaced Javascript Template
- Perform Function At Timed Intervals
- Prevent Background Image Flickering in IE
- Prevent Embedded JavaScript from Failing Validation
- Put Comma Values in Numbers
- Random Hex Color
- Redirect
- Redirect Mobile Devices
- Shuffle Array
- Strip HTML Tags in JavaScript
- Test for Internet Explorer in JavaScript
- Test if Element Supports Attribute
- Toggle (Show/Hide) Element
- Trim First/Last Characters in String
- Validate HTML Bookmarklet
- Viewport Size, Screen Resolution, Mouse Postition
- Word Count Bookmarklet