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 the browser address bar in iOS and Android if the length of the pages content is long enough. This is a very common function and is excellent if you would like to increase the mobile browsers content viewable area. I have one small problem with it, it doesn’t take into account page anchors (http://www.example.com/#comments). When the page loads with a page anchor, it cancels out this anchor and scrolls to the top on load.
I propose an improvement to this code javascript snippet that will add a page anchor check statement prior to the window.scrollTo(0, 1); function.
function hideURLbar() {
if (window.location.hash.indexOf('#') == -1) {
window.scrollTo(0, 1);
}
}
if (navigator.userAgent.indexOf('iPhone') != -1 || navigator.userAgent.indexOf('Android') != -1) {
addEventListener("load", function() {
setTimeout(hideURLbar, 0);
}, false);
}

Today, I have officially released version 2.0 of my popular premium business WordPress theme, Simply Business. Simply Business WordPress v2.0 brings a ton of new features, bug fixes, and full WordPress 3.3 support! This theme can be purchased on ThemeForest.net for only $30.00.
OK, I don’t normally post short posts on this site, but this is worth sharing. The Wilderness Downtown Project, might be one of the coolest most creative websites I have ever come across on the web. It is an HTML 5 interactive Google Maps film that is customized for you.
When you get to the site, enter the address you grew up in then click search. An HTML5 video like you have never seen before will begin playing.
Just trust me, browse over to http://thewildernessdowntown.com in an HTML 5 browser and be amazed!
OK, just wanted to make a quick post about a little theory I have regarding Apple and the unannounced Aug/Sept event. This has nothing todo with iPod, I mean I am sure they will introduce new iPod Touches, but that is a given. My Theory is regarding the iTV. A lot of people have been speculating that Apple is going to refresh the Apple TV. There are also rumors going around about a new mystery iLife application.
My theory is that the new mystery iLife application is going to be iTV. They just released a Mac Mini with HDMI out, they have an iMac large enough to use as a TV, and they have a new input device, the Magic Trackpad. I think they are going to scrap Apple TV as a hardware device and introduce a new couch/remote friendly application called iTV to the iLife suite. Yes, I know they already have Front Row, but seriously, who uses that, it is total crap.
I personally am all for this, I currently have a Mac Mini hooked up to my 50″ Plasma and am currently running Plex, a great Media Center application. Apple has hinted that streaming movies would hit the cloud before streaming music, so could the new mystery data center and the mystery iLife application be connected to allow us to download and stream TV Shows and Movies in a whole new way?
What are your thoughts? Would you use this?
Well, as promised Apple has activated the iPhone 4 FREE case program. If you already purchased a bumper from Apple, you will automatically get your refund. Emails concerning this have already been floating around.
How about those that didn’t buy a bump? It looks like Apple is going to be handling this through an iPhone app. [...]
Today, Hulu officially announced their new premium service, Hulu Plus. Hulu Plus is a premium service that is going to be offered for $9.99 a month. No launch date for the new service is available at this time, but some are reporting the private beta preview is under way. So, what exactly do you get [...]
I opened my email today on my iPhone 4 and discovered that iOS 4 now detects various tracking numbers and links them to the appropriate tracking website. Not a huge find, but defiantly useful hidden feature of iOS 4. Click on a tracking number in your email, and Apple will present you with the following [...]
For those of you that follow me, you are probably already know that I recently redesigned my post footer. For those that don’t know a post footer is the area just below this post with the “Share It!” and “Related Post” sections. I took it on myself to create a completely custom footer area with [...]
This morning, I was reading all about the new Apple mobile store on my RSS feeds. Leave it up to Apple to figure out another damn way for me to spend to much money. Anyways, what I found interesting is that once I installed the application from the App Store, I was greeted with this [...]
This morning Steve took the stage at the annual World Wide Developers Conference. I know a gazillion tech blogs have already over covered today’s announcements, but I wanted to chime in and give my two cents on some of the new ones. For you who are looking for more detailed coverage of todays news, browse [...]