How can disable right click menu on inline span inHTML?

Total Post:70

Points:494
 1730  View(s)
Ratings:
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!

  1. Post:604

    Points:4228
    Re: How can disable right click menu on inline span inHTML?

    Hi Lois!

    You can handle the oncontextmenu event

    example:

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

Answer