some
some

Reputation: 1

how to disable the image toolbar

How can I disable the image toolbar that popups whenever mouse pointer is over an image. I need to do this within javascript only.

Upvotes: 0

Views: 244

Answers (3)

David M
David M

Reputation: 72870

The image toolbar can be disabled through a meta tag:

<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

or apparently (though I haven't tried this) using an attribute on the tag itself:

GALLERYIMG="no"

The latter approach could obviously be done in a pure Javascript solution...

Upvotes: 2

Marius
Marius

Reputation: 58931

Try:

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

or for an individual image:

<img src="imageurl.png" galleryimg="no" />

Upvotes: 1

e8johan
e8johan

Reputation: 2939

You can display the image as a background element through CSS instead of using img tag. The tag will probably always have the popup.

Upvotes: 0

Related Questions