Skip to content

Instantly share code, notes, and snippets.

@thefrontender
thefrontender / hideaddrbar.js
Created January 11, 2012 02:15 — forked from scottjehl/hideaddrbar.js
Normalized hide address bar for iOS & Android (JSLint compliant)
/*jslint browser: true, indent: 4 */
/*
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl, scottjehl.com
* MIT License
*/
(function (win) {
'use strict';
var doc = win.document,
scrollTop = 1,