Image Toolbar Header

I’m doing some code cleanup around here, and I came to a line in my <head> that is soley to work around an Internet Explorer feature I don’t want on my site.

A highlighted example of an Internet Explorer image toolbar.

Here is the standard way to remove it:

<meta http-equiv="imagetoolbar" content="no" />

Since the http-equiv attribute is meant to be simply a document-level replacement for real HTTP headers, and I have the ability to send out real HTTP headers, I decided to try out removing this line and replacing it with this bit of PHP, which according to the spec is functionally equivilent:

<?php header ('imagetoolbar: no'); ?>

Looks funky, but according to the HTTP 1.1 specification user agents should ignore headers they don’t recognize, so there’s no harm. However in my testing I was disappointed (though not terribly surprised) to find that Internet Explorer did not respect the header. I have trimmed other parts of my markup quite a bit though, and I’m willing to sacrifice this one line.

17 thoughts on “Image Toolbar Header

  1. I am assuming that by removing it, you are doing so for persons other than yourself, because a) I doubt you use Internet Explorer personally for anything other than CSS compatibility testing, and b) even if you did use it, you’d probably just turn the stupid thing off in IE’s options.

    Actually, you know what? This was going to be a mild rebuke about forcing people to do something when they could be convinced instead, but every time I am at someone else’s place and am using their computer, turning that toolbar off is one of the first things I do. And I sure as hell don’t ask first. I just turn it off and pat myself on the back for making the world a better place. Sometimes the customer ISN’T always right. Sometimes they’re just ignorant. 🙂

    Here’s a second vote for using the subscribe to comments plugin (which I also contributed to). The great thing about it is that it don’t require anything from you, the admin. If people want to get e-mail notifications, they check (or leave checked) the box, and when they don’t want any more notifications for that entry, they unsubscribe themselves.

  2. Pingback: alexking.org: Blog
  3. David: I appreciate that you use your RSS reader as a dumping ground for small things such as the comments on thie thread. But I prefer to keep me reader clean. My mail client – IMO – is much more adept at handling large quantities of mail than my RSS reader is, due to the way I can customize the rules it uses to sort my mail by. My RSS reader (NetNewsWire Lite) doesn’t allow me to do any of these things.

  4. Thanks for the tip. I am using Crystal Reports, which provides its own printing. That menu confuses users to no end!!!

  5. Thanks for the tip, this is incredibly useful as I am using an image as a basis for a colour picker and the helpful IE toolbar obstructs some of the colours.

  6. Thankyou very much for your help. I used java script to protect my webpage but i didnot know a way to get rid of image tool bar. thanks

  7. “And I sure as hell don’t ask first. I just turn it off and pat myself on the back for making the world a better place. Sometimes the customer ISN’T always right. Sometimes they’re just ignorant.”

    Precisely why we programmers try to keep you graphics monkeys as far away from the truly dangerous things as possible. Have not seen a more ‘ingnorant’ comment from a techno-phile in a LOOOOONG time.

    (to the author: great tip, thanks)

SHARE YOUR THOUGHTS