Detect Javascript On Snippets


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.

19 February, 2011   

Detect Internet Explorer

08 October, 2014   

JavaScript code to detect browser and OS.

22 June, 2014   

To test in other timezones, replace '-5' with your local standard time GMT offset.

25 January, 2014   

To detect if Aero Glass is enabled we must use the DwmIsCompositionEnabled function.

26 May, 2012   

Helps to find out browser version and type your website visitor is using

It's an unfortunate necessity that you need to write different code for windows sometimes or at the very least load different libraries since there is no fork(), etc. This is how you can tell.

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.

This sql statement enables to detect duplicates entries over a key and creates a seq column which says which one is the sequence of the duplicates. This way you can take only the seq = 1 and still be able to identify all duplicates

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

Toggle a column bit regardless of state. Useful to change state without doing a query first to detect the state of the bit.

29 January, 2011   

Cufon 101

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.

A javaScript loop example with Do While loop

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 (window.open function)