Return to Snippet

Revision: 43924
at April 3, 2011 12:55 by peterbelsky


Initial Code
// When ready...
window.addEventListener("load",function() {
	// Set a timeout...
	setTimeout(function(){
		// Hide the address bar!
		window.scrollTo(0, 1);
	}, 0);
});


Bonus: META Tag for Bookmarked Sites

<meta name="apple-mobile-web-app-capable" content="yes" />

Initial URL
http://davidwalsh.name/hide-address-bar?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Bludice+%28David+Walsh+Blog+%3A%3A+PHP%2C+CSS%2C+MooTools%2C+and+Everything+Else%29&utm_content=Google+Reader

Initial Description

                                

Initial Title
Hide the Address Bar within Mobile Web Applications

Initial Tags

                                

Initial Language
JavaScript