Javascript Snippet Snippets

How to add jQuery and Snippet to your HTML document

29 December, 2016   

JavaScript code snippet to test if Mac or PC

Detect Javascript On/Off, With Notification: If JavaScript is on the user gets a welcome message. If off, the user is instructed to turn it on.

13 November, 2012   

Creating and maintaining an effective JavaScript toolbox can greatly reduce development time. This script will show you how to include specific snippet modules on individual pages.

How to dynamically update your Snippets

26 April, 2012   

JavaScript code example for Table Row Highlight

JavaScript code snippet to Remove the Last Character from a String

28 January, 2019   

Usually, when one event loads, it writes over any previous ones. Using this snippet, you can add several events to one page without any problems.

04 July, 2012   

Good programmer comments their code so that anyone can know what is happening in code. Its easy for others to edit the code.

Confirm a deletion (or any action) with Javascript.

11 February, 2012   

JavaScript Code to show a message box or a alert window when page opens

29 January, 2011   

Cufon 101

A javaScript loop example with Do While loop

11 January, 2015   

There is a shorter version of previous snippet for *nix systems.

22 August, 2012   

This JavaScript code within your web page HTML between your HEAD tags

08 March, 2012   

A javaScript loop example with Break a loop

18 September, 2012   

Get the current title of the page using javascript and store it into a variable

The JavaScript is just a function called redirect, and is requesting that a variable be passed to it.

17 April, 2013   

In Firefox, Safari and Chrome, this script only works if the window was originally opened using Javascript ( function)

22 September, 2012   

Allows you to take a user to the previous page they were on using a button