HOW CAN DISABLE RIGHT CLICK MENU ON INLINE SPAN INHTML?

lois waisbrooker

Total Post:70

Points:494
Posted by  lois waisbrooker
 1483  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. AVADHESH PATEL

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!