Popups

Tech Usability #5: PopupsMarch 27th, 2009

One of an ongoing series of articles discussing usability and accessibility issues in technology and the web; with tips, tricks and standards to improve the user’s overall experience.

Ask anybody who uses the internet what irritates them the most about the web and the answer you get back will probably be popups that take over the screen.

They might not even be open up in a new window and it might not even be for an advert (For example opening new windows for a login box, or opening a link in a new window), but either way you are taking the content away from the user. It’s the digital equivalent of a printer putting a post-it note over a magazine article with an advert or a reminder to email the editor if you have feedback printed on it. (And if you work in the advertising industry, please don’t start doing that. I’ll never forgive myself).

Personally I find the worst offender to be snap.com. This is a service which, when the mouse moves over a link, will show a screenshot of the site being linked to. Not only is it incredibly unhelpful to have a three inch wide screenshot, it also slows down your experience because your browser has to load the javascript, load the site linked to in order to grab a screenshot, and then display it. Talk about slowing you down!

Yes, there are legitimate uses for using popups, and I’m honestly not complaining about this. There are many good javascript modal box solutions out there such as Lightbox and Facebox which shows an image or webpage when you click on a link or picture (click on the screenshot in this article to see what I mean). These have truly useful applications from image galleries to the media upload box in WordPress, don’t take over your browser so you can move to another tab, and are lightweight and simple enough to not be irritating… but only if the application is right.

So, if your design calls for a modal box popup, then use a javascript solution rather than opening in a new window. And if you need to show a message such as the “could you possibly spend two minutes to fill in a survey to tell us how to improve our site?” variety, then don’t use popups! Instead, show a banner along the top of the screen which will grab the user’s attention, but won’t take over their screen nor ruin their browsing experience.

Tech Usability #2: Hitting your targetJanuary 2nd, 2009

When making targets for your user to click or point on, the bigger you can make it, the better. This is shown by Fitts’ law, which states:
Time = a + b log2(distance/size + 1)

Where a is the start/stop time of the device, bthe speed of the device, distance is how far is is from the starting point to the target, and size is how big the target is (or rather, how wide it is on the axis of the direction you are moving).

How does this affect me?

There’s two ways which Fitts’ law can be used to your advantage to make your websites more accessible: putting your targets near the “starting point” and making them nice and big.

Put your targets nearby

It goes without saying that the further away something is, the longer it will take to get there. Of course, if you are designing a website then you won’t know where the user’s mouse pointer is, but you can make a guess. For example, if they’ve just filled in a form, then it’s probably likely that their mouse pointer is over the last field that was filled in, so put the submit button near the last field.

Popup menus can be useful for proximity, since the target is pretty much right next to the pointer. The most common usage of this is the popup menu you get in Windows when you right-click, but this could also be done on the left-click or even when a user presses and holds on a touch-screen device (such as in Windows 7).

However, you need to beware that popup menus don’t get in the way of the intended target. The Marks and Spencer website does this by covering up a large amount of the page (including the search box) when you go over the menu item (see below). This could be solved by either having a short delay before showing the menu, or having it show when the user clicks on the menu bar.

Screenshot of M&S website

Another noteworthy method is having the targets at the edge of the screen, for example having the Windows Start menu at the bottom left, and the Dock at the bottom of the screen in Mac OS. Mac OS also make extensive use of hot spots, where the corner of a screen is the target.

Make your targets big

Screenshot of BBC News sidebar menuWhen making links, make them nice and big. Don’t use small 5px high buttons, make them nice and clunky!

A common mistake designers make is to ignore the whitespace around links in menu bars. So even though the link itself is small, if you make the whitespace active then the target is made bigger! For example, the BBC News website (see right) has wide menu items in the sidebar, where the whole width of the sidebar is active rather than just the link text. This can be seen in the image where the whole ‘politics’ menu item has been highlighted.

It’s also helpful for accessibility!

Your older visitors will thank you for having large link targets: those with poor motor skills will struggle to move the mouse with fine detail, so will be able to browse quicker. To see this for yourself, try using your mouse with the tip of only one finger: you’ll notice yourself slowing down to try and hit the small targets.