Home > DeveloperSection > Forums > How can disable right click menu on inline span inHTML?
lois waisbrooker
lois waisbrooker

Total Post:70

Points:494
Posted on    March-06-2013 4:32 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 1255  View(s)
Rate this:

Hi Expert!

I want to disable right click menu on inline span in HTML. How it is possible. Please help me!

Thanks in advance!



AVADHESH PATEL

Total Post:604

Points:4228
Posted on    March-06-2013 7:51 AM

Hi Lois!

You can handle the oncontextmenu event

example:

<span style="color:red;" oncontextmenu="return false;">Right Click Disabled</span>


Don't want to miss updates? Please click the below button!

Follow MindStick