Browsers Tutorials

  • Image onLoad Event + JavaScript Issue with Internet Explorer

    I was recently coding an application that would inject an image into the page and then execute a given function when the image's onLoad event fires. My code was working everywhere except Internet Explorer. That wasn't all together shocking initially but the fact that even IE8 was failing to the fire the onLoad event was discouraging. Here's what my code looked like:

  • Test For Popup Blocker Using JavaScript

    Several websites rely on the ever-so-annoying popup window. As much as well all hate popup windows, some websites do benefit and justly require them. The problem is that some people have their popup blocker on but don't know it — thus the new window doesn't open. Of course the browser notifies the user but it isn't always as obvious as it should be. Here's a quick method for testing if your popup window is being blocked.

  • Turn Internet Explorer into Chrome with Chrome Frame

    I'm just going to cut to the chase: Internet Explorer is rubbish. I don't care what version you throw at me — 6, 7, 8...rubbish. Apparently Google agrees with me because they've released Google Chrome Frame, a browser plugin and META tag system that allows you to turn IE installs into a virtual "Chrome" install so that IE will support HTML5's canvas tag and take advantage of JavaScript performance improvements featured in Google Chrome.

  • iPhone Hath Cometh

    If you follow me on Twitter or talk to me my IRC channel (#davidwalshblog on FreeNode), you know that I've been anticipating my birthday because BDay was iDay — iPhone day, that is. My birthday has come and gone and I now possess a slick iPhone 3Gs. I absolutely love it so far but just like my limited Mac knowledge, I don't know which iPhone apps I need to get.

  • Package Your Firefox Extension into an XPI

    Yesterday I detailed the file/folder structure of a Firefox extension. Once you have your extension ready for testing, you need to package everything together into an XPI file. Luckily there's a quick and easy way to do so.

  • Firefox Extension Template

    Creating a Firefox extension can be difficult if you don't know the files involved and how to structure your extension folder. Fear not — I have created a very basic Firefox extension template file/folder structure for you to get your first plugin going.

  • Adding the XPI MIME Type for Firefox Extension Installs

    Yesterday I posted version 0.1 of the David Walsh Blog Toolbar for Firefox. Unfortunately that led to an awkward conversation with my .htaccess file.

  • Making IE8 Emulate IE7

    As you probably know, Microsoft Internet Explorer 8 was "officially" released yesterday. If you were caught off guard by this and haven't had time to test your sites in IE8, don't lose sleep; you can make IE8 render pages like IE7 using a simple META tag.

  • Add Your Website to Firefox’s Search Bar Using OpenSearch XML

    The ability to search right from your browser's address toolbar is a Godsend. No more extra Google or Yahoo page loads — simply open a new tab and roll off your search terms. Of course Firefox comes with Google, Yahoo, and other search engines by default, but what if you want to offer search for YOUR website in the address bar? Using Open Search, you can create an XML file to do just that.

  • First Impressions of Google Chrome

    Google Chrome was released last week and got as much attention as you would expect it would. A Google browser was inevitable. I'd like to share a few scattered thoughts on Google's browser effort and gain a little feedback from you. I'll let 'em rip: