Disable Right Click on Pop Up window

Does anyone know how I can disable the right click on a pop up window? Its an art site and the artists want their stuff protected even minimally. Heres my pop up code what do I need to add?
function popUpImage2()
    var popupimage = document.getElementById("image2").src;
    newwindow=window.open(popupimage,"POPUP","height=400,width=400");
    if (window.focus) newwindow.focus();

not 100% sure as it isn't tested but you could always do
function popUpImage2(){
    var  popupimage = document.getElementById("image2").src;
     newwindow=window.open(popupimage,"POPUP","height=400,width=400");
    if  (window.focus) newwindow.focus();
     newwindow.document.onmousedown = function(){
          if  (event.button==2){
             alert("Right click disabled");
               return false;
That may work but it doesn't stop the person going to the file menu and clicking save so pointless really, you would be better off loading a dynamic php page with the image name in the query string.

Similar Messages

  • How to disable right click in a transaction?

    Hi,
         How to disable right click in transaction.
    i.e, While in CRMD_BUS2000111, in partners tab, when we right click, a pop up window appears. I don't want this to happen. I don t want the window to pop up.
    How can this be achieved witout changing any standard code?
    Regards,
    Varun

    Hi Amit,
    Tcode - CRMD_BUS2000111
    Regards,
    Varun

  • Disable Right Click Pop-Up Menu on adobe reader activex control

    Hi,
    I am using adobe reader activex control on my vb.net window based application.May i know how can i disable right click pop-up menu on adobe reader activex control?I don't want search function from right click pop up menu.
    Please help me.
    Thanks and best regards,
    Ko Ko

    Hi,
    I would disable the right click.....
    perhaps you can call a javascript function to display a table of options on your jsp with a layer:
    function myOptions( )
    var fullText =      "<table width='278'>" +
         "<tr bgcolor='#FF9900'>" +
         "<td colspan='3'> <b><font color='#000000' face='MS Sans Serif' size='3'>Option1</font></b></td>" +
         "</tr>" +
    "<tr>" +
    "<tr bgcolor='#FF9900'>" +
         "<td colspan='3'> <b><font color='#000000' face='MS Sans Serif' size='3'>Option2</font></b></td>" +
         "</tr>" +
    "<tr>" +
         " <td height='35'></td>" +
         " <td colspan='2' height='35'>" +
         "     <div align='left'>" +
    " <br>" +
    "     <p><font color='#FF0000'>Select option's from above.</font></p>" +
    "</div>" +
         "</td>" +
              "</tr>" +
    "</table>";
    editLayer( fullText, lyr );
    showLayer( lyr );
    editLayer and showLayer will display table on JSP....remeber to call the layer "1yr"
    // Show the visible layer that is passed into the function
    function showLayer( _obj ){
    if ( ns() ){
         _obj.visibility = "show";
    } else {
         _obj.style.visibility = "visible";
    // Write the layer with the text in the parameters
    function editLayer( txt, obj ){
    var doc;
    if ( ns() ) {
         doc = self.document._obj.document;
         doc.write( _txt );
         doc.close();
    } else {
         doc = _obj;     
         doc.innerHTML = _txt;     
         doc.document.close();     

  • Need to Disable Right Click FF10+ windows

    Need to at least remove the save as feature but ideally disable right click all together.

    You can't hide the right-click context menu, but you can hide items in the right-click context menu via an extension like the Menu Editor or via code in the userChrome.css file in the chrome folder.
    *http://kb.mozillazine.org/userChrome.css
    *Menu Editor: https://addons.mozilla.org/firefox/addon/menu-editor/
    *http://kb.mozillazine.org/Chrome_element_names_and_IDs

  • How to disable right click option re-size on table column header?

    Hi All,
    Please let us know how to disable right click option re-size on table column header.
    The issue is that when I right click on the column header, the column is selected and the context menu with options like Sort, Columns, Resize Columns, etc.. is popping. we want to disable column  re-size option.
    We are binding the table values programatically (not using Bc4J) and the Jdeveloper version is 11.1.2.2
    Thanks in advance,
    - Vignesh S.

    Hi Gawish,
    Thanks for the reply.
    This will make the particular column frozen and only work for that particular column.
    My use case is that to remove the resize columns option from the context menu or to disable the right click option.
    Making column selection as none will disable the right click option but we need column selection for sorting.
    Is there any other way to achieve this?
    Thanks in advance,
    -Vignesh S.

  • Firefox regularly disables right click, bookmarking, etc and I have to log off and log back on or restart my computer to fix it, then it happens again, always

    firefox regularly disables right click, bookmarking, etc and then I cannot even close it so I have to log off and log back on or restart my computer to fix it, then it happens again, ALWAYS happens, ALWAYS.

    I just reset....
    <pre><nowiki>Name Firefox
    Version 29.0.1
    Update History
    User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
    Profile Folder
    Enabled Plugins about:plugins
    Build Configuration about:buildconfig
    Memory Use about:memory
    Crash Reports for the Last 3 Days
    Report ID Submitted
    All Crash Reports (including 2 pending crashes in the given time range)
    Extensions
    Name Version Enabled ID
    McAfee SiteAdvisor 3.6.6 false {4ED1F68A-5463-4931-9384-8FFF5ED91D92}
    Important Modified Preferences
    Name Value browser.cache.disk.capacity 358400
    browser.cache.disk.smart_size_cached_value 358400
    browser.cache.disk.smart_size.first_run false
    browser.cache.disk.smart_size.use_old_max false
    browser.places.smartBookmarksVersion 6
    browser.sessionstore.upgradeBackup.latestBuildID 20140506152807
    browser.startup.homepage_override.buildID 20140506152807
    browser.startup.homepage_override.mstone 29.0.1
    dom.mozApps.used true
    extensions.lastAppVersion 29.0.1
    gfx.direct3d.last_used_feature_level_idx 0
    network.cookie.prefsMigrated true
    places.history.expiration.transient_current_max_pages 104858
    plugin.disable_full_page_plugin_for_types application/pdf
    plugin.importedState true
    privacy.sanitize.migrateFx3Prefs true
    Graphics
    Adapter Description Intel(R) HD Graphics Family
    Adapter Description (GPU #2) NVIDIA GeForce GT 540M
    Adapter Drivers igdumd64 igd10umd64 igd10umd64 igdumdx32 igd10umd32 igd10umd32
    Adapter Drivers (GPU #2) nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
    Adapter RAM Unknown
    Adapter RAM (GPU #2) 2048
    Device ID 0x0116
    Device ID (GPU #2) 0x0df4
    Direct2D Enabled true
    DirectWrite Enabled true (6.2.9200.16571)
    Driver Date 11-28-2010
    Driver Date (GPU #2) 11-3-2011
    Driver Version 8.15.10.2253
    Driver Version (GPU #2) 8.17.12.8577
    GPU #2 Active false
    GPU Accelerated Windows 1/1 Direct3D 10
    Vendor ID 0x8086
    Vendor ID (GPU #2) 0x10de
    WebGL Renderer Google Inc. -- ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote false
    AzureCanvasBackend direct2d
    AzureContentBackend direct2d
    AzureFallbackCanvasBackend cairo
    AzureSkiaAccelerated 0
    JavaScript
    Incremental GC true
    Accessibility
    Activated false
    Prevent Accessibility 0
    Library Versions
    Expected minimum version Version in use
    NSPR 4.10.3 4.10.3
    NSS 3.16 Basic ECC 3.16 Basic ECC
    NSSSMIME 3.16 Basic ECC 3.16 Basic ECC
    NSSSSL 3.16 Basic ECC 3.16 Basic ECC
    NSSUTIL 3.16 3.16</nowiki></pre>

  • Delayed response on right click of mouse in windows 8.1 updated from win 8

    dear all,
    i am facing issue with the right click of mouse in windows 8.1 which i have recently updated from my preloaded windows  8 
    which came with the pavilion g6-2231tx model of hp. 
    on right clicking the mouse i am getting delayed response and sometimes no response at all ,system hangs and freezes..
    please do help asap...
    Regards,
    SMARTSKY

    Hi SMARTSKY,
    Thank you for your inquiry, I will do my best to assist you!
    I understand that after updating to Windows 8.1, you are experiencing a difficulty with the right click on your mouse.
    Have you done all your Windows updates?
    Here is a link to a document to assist with Troubleshooting Mouse Problems (Windows 8).
    Windows 8 also has a built in troubleshooter you can utilize.
    Press the Windows key +C to open charms.
    Type troubleshoot mouse in the search bar and press enter
    Follow the on screen prompts.
    You can run The HP Support Assistant to help with HP updates and resolving issues.
    If you would like further assistance, do not hesitate to repost.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • The right click menu pops up after I push the right mouse button, instead of when I release it.

    I am using an extension All-In-One Gestures. It works on my other installation of Firefox 4 - particularly, the right-click menu pops up if I click right mouse button and then release it so I can perform gesture or turn the wheel instead of getting a right click menu.
    But on this installation (basically the same addons and OS), the right-click menu pops up on pushing down the right mouse button so the right-button+wheel gestures do not work, and the menu stays there while I am performing the gesture which is rather annoying.
    So I though maybe there is some obscure configuration option to toggle to make right-click menu pop up after the button release? Or is this entirely the extension's fault? Note that it does work as expected on other installation...

    You have to enable in Firefox
    -> Options -> Content -> Activate JavaScript (yes) -> More
    -> Allow scripts the following actions
    -> Inactivate or replace context menu (yes)
    in order to allow All-in-one-Gesture to block the immediate appearance of the context menu.
    If you forbid Firefox JavaScript and/or the manipulation of the context menu by use of JavaScript, All-in-one-Gesture cannot work properly.

  • Disable right click on a button

    I created a banner, covered it with a button and added a clickthrough. Is there a way to disable the right click capability.
    EB.Clickthrough("");

    Is there a way to disable the right click? When I publish the edge file I get an html5 site. I have tried implementing this
    http://stackoverflow.com/questions/737022/how-do-i-disable-right-click-on-my-web-page
    but it is still right clicking.

  • Wanted to disable right click for RRI for one of coulmns...

    Hi
    I created query in WAD 7. The query output in Portal shows 5 columns. For this query i have RRI (Jump query). Could u pls. let me know how can I disable Right-Click functionality for one of the column field (basically i wanted to restrict RRI functionality for one of the field column).
    Thanks...

    As far as I know, RRI works at the level of record, not column... So for any column in any record where you right click and select Go To, you'll get the settings from RSBBS...
    Fields and settings specified in Assignment Details are for those parameters to be transferred to the target, not for determining what columns accept the right-click or not...

  • Is there any way to disable right click and drag and drop for photos on iweb?

    Re: protecting photos when using iweb as your web designer...
    Is there any way to disable right click and drag and drop for photos using iweb?  I have seen tutorials about creating a text box around each image - but is there a better way? 

    However, there is no way you can prevent someone from making a screenshot of the image as it is displayed on the screen no matter what application you use to create the web page.
    You can add a watermark to dissuade the casual "thief" but those who are serious about stealing the photo for their own use can remove the watermark with some effort.
    OT

  • How to disable right-click in Flex app /w actionscript?

    Anyone know of actionscript code within Flex for disabling
    right-click. I've got an app that I don't want my users to have
    access to the right-click menu.

    "EvolvedDSM" <[email protected]> wrote in
    message
    news:gadm7g$fi6$[email protected]..
    > Thanks hanchan, I did just want to disable the zoom
    options and whatnot.
    > After
    > watching a few users, who have never worked with a flex
    app before,
    > accidentally right click here and there and zoom in or
    zoom out, I was
    > banging
    > my head on the wall thinking "this could happen ALL THE
    TIME with these
    > people".
    >
    > Ahhh, Amy. You need to feel the love of "No Script", a
    FireFox browser
    > extension. It is truly the best tool on the net imo. NO
    MORE ADS. You
    > have
    > to allow non-domain site ads to appear on the page, else
    they never load
    > and
    > you don't have to deal with the ads. If you use FireFox,
    get it!! And if
    > you
    > don't use FireFox, try it!!
    But even then, the player itself isn't providing you with any
    security.

  • How to disable right click on SAP portal login page

    Hi,
    How to disable right click on SAP portal login page. Our requirement is one should not be able to right click -
    >view source. on the portal login page.
    Best Regars,
    Tushar

    Hi Tchanvan,
    If you search google with "javascript disable right click" you will get loads of javascript code. This will also help you to gain knowledge.
    @Explanation to last post : You need to import standard logon par file in NWDS. Create javascript file to disable right click and then include this file in your logon page. i think login page name is portalLogin.jsp and then deploy this new PAR file.
    regards,
    Jigar Oza

  • Disabled right click on certian sights

    I am using rutorrent though firefox and the settings for the torrents also use right click when I do this I get the right click memu right on top of it is there any way of disabling right click for only certian sights.

    No, you can only do that for all sites.
    Tools > Options > Content : JavaScript > Advanced > Allow Scripts to: [] "Disable or replace context menus"
    * http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features
    * http://kb.mozillazine.org/JavaScript#Advanced_JavaScript_settings

  • What is the code to disable right click and where do I put it in reference to an image?

    What is the code to disable right click and where do I put it in reference to an image?

    There is no sure way to prevent people from right clicking on your webpage or taking images.  This will tell you how:
    http://www.dynamicdrive.com/dynamicindex9/noright.htm
    Now if I have javascript disabled visiting your site, I can easily get around this because the code will not execute.  Also I can simply view the source of your website and get the images.  My suggestion to you is to rethink this because all you will end up doing is annoying visitors and make them want to get your images even more.  The more you block people from something the more they want it.  It's like telling a kid they can't have candy or something then they want it more.

Maybe you are looking for