Wednesday, June 11, 2008

Disable Right Click

Add this attribute to the BODY Tag to disable the context menu everywhere on the page ...
<body oncontextmenu='return false'>

Add this Attribute to an IMG Tag to disable the context menu for individual images ...

<img src='imagename.gif' width='250' height='250' oncontextmenu='return false'>

1 comment:

shanmuga said...

Hi dani,
nice to see you blog with powerfull information and very usefull info too. keep doing good.

with regards