Articles Published in: Quick Coding Tips »

This category features a series of quick web development coding tips. The languages featured in this category include PHP, MySQL, JavaScript, jQuery, CSS, and more.

Quick Tip: Hide Mobile Web Browser Address Bar Improved

March 03, 2012 | Quick Coding Tips | 23 Comments

If you have ever developed for the mobile web, you have probably come across this little snippet of JavaScript which enables you to hide the mobile browsers address bar: function hideURLbar() { window.scrollTo(0, 1); } if (navigator.userAgent.indexOf(‘iPhone’) != -1 || navigator.userAgent.indexOf(‘Android’) != -1) { addEventListener(“load”, function() { setTimeout(hideURLbar, 0); }, false); } This code hides […]

Search »


Paying the Bills »