hi

Last post 11-13-2008 6:18 AM by asp.netlearner. 5 replies.

Sort Posts:

  • hi

    11-12-2008, 7:15 AM

    Hi,

     I want to disable some options on right click an image.How to disable the options ''save picture as'',''copy'',''paste'',''E-mail picture'',''set as desktop item'',''set as back ground'',''save target as'',''print target'',''print picture'' in asp.net webpage.Is there any java script for that or we can write any html code.Can anyone please help me?

     

                                                                 Thank you.

    Filed under: , , , ,
  • Re: hi

    11-12-2008, 8:22 AM
    • Member
      115 point Member
    • asimiq80
    • Member since 01-24-2007, 1:32 PM
    • Posts 35
    You can disable the complete right click menu on any control but selected options can not mark as disable. To disable right click menu on that image, add "oncontextmenu" event on that image tag and write "return false;" statement.
  • Re: hi

    11-12-2008, 9:43 AM
    Answer
    • All-Star
      20,690 point All-Star
    • A1ien51
    • Member since 05-06-2005, 6:46 PM
    • MD USA
    • Posts 3,806

    All modern day browses will not let you disable the right click menu if the user sets the right settings in the browser. If you do not want a person to not take something off your page, than your only option really is not to put it on the page. :) When a person views your website the images are downloaded to the user's computer already. They just have to grab them from the temp internet folder. Or they can just view the page source of the page and grab the image, or use any number of tools to get the images.

     Eric

  • Re: hi

    11-12-2008, 9:44 AM
    • All-Star
      20,690 point All-Star
    • A1ien51
    • Member since 05-06-2005, 6:46 PM
    • MD USA
    • Posts 3,806

     Also in the future. Please use a more descriptive title for your posts. Hi is too generic and gives the people viewing threads any idea what your post is about.

     

    Eric

  • Re: Thankyou verymuch eric

    11-13-2008, 6:12 AM

    Thankyou very much eric.Thanks for your reply.And can you please tell me how I can avoid others copying my source page so that they can't grab the image from my web page.

     

                                                  Thank you

  • Re: hi

    11-13-2008, 6:18 AM

    Thankyou very much for your reply.Thankyou

Page 1 of 1 (6 items)