How can disable right click menu on inline span inHTML?

Total Post:70

Points:494

 1917  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. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.