Detect Browser Snippets


26 May, 2012   

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

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.

27 August, 2011   

The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting. The noscript element can contain all the elements that you can find inside the body element of a normal HTML page. The content inside the noscript element will...

08 October, 2014   

JavaScript code to detect browser and OS.

19 February, 2011   

Detect Internet Explorer

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.

29 August, 2011   

An example of Cross-Browser Min Height

jQuery example code to add image to browser cache

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.

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

27 August, 2011   

The <frame> tag defines one particular window (frame) within a frameset. In the example below we have a frameset with two columns. The first column is set to 25% of the width of the browser window. The second column is set to 75% of the width of the browser window. The document "frame_a.htm" is put into the first column, and...

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

30 August, 2011   

This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.

12 February, 2015   

JS sniffer detects browser and OS.

22 January, 2011   

This will work in any browser on any element, to support styling changes on hover.

02 August, 2014   

JavaScript code to detects browser and OS

05 December, 2013   

AppleScript to send URL from Mac browser to Prowl (iOS)

26 May, 2012   

Allows to perform PHP redirection (must be placed before any browser output).

27 February, 2014   

You can quickly and easily apply transparency to any supportive element by adding the following CSS code your stylesheet: