Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. No right click

No right click

Scheduled Pinned Locked Moved ASP.NET
javascript
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tirthadip
    wrote on last edited by
    #1

    hi everyone, I want a meesage to be appeared whenever a user Right click on a page, instead of the dropdown menu.that is i want to prevent users from using right click dropdown menus. please give me the javascript code snippet.:~ :~ :~ Tirthadip

    _ E R 3 Replies Last reply
    0
    • T Tirthadip

      hi everyone, I want a meesage to be appeared whenever a user Right click on a page, instead of the dropdown menu.that is i want to prevent users from using right click dropdown menus. please give me the javascript code snippet.:~ :~ :~ Tirthadip

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      Hi, probably this will help you a bit. http://www.suite101.com/article.cfm/javascript/54224 Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • T Tirthadip

        hi everyone, I want a meesage to be appeared whenever a user Right click on a page, instead of the dropdown menu.that is i want to prevent users from using right click dropdown menus. please give me the javascript code snippet.:~ :~ :~ Tirthadip

        E Offline
        E Offline
        enjoycrack
        wrote on last edited by
        #3

        Hi there, To catch the right-click event, u might use oncontext menu event... << >>

        1 Reply Last reply
        0
        • T Tirthadip

          hi everyone, I want a meesage to be appeared whenever a user Right click on a page, instead of the dropdown menu.that is i want to prevent users from using right click dropdown menus. please give me the javascript code snippet.:~ :~ :~ Tirthadip

          R Offline
          R Offline
          RichardGrimmer
          wrote on last edited by
          #4

          Set the page's onmenu attribute to simply return false... page.onmenu='javascript: return false;' should do the job if memory serves (which it probably doesn't on a Friday pm!) "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups