Disabling right click on images using jquery

前端 未结 9 2146

I want to know how to disable right click on images using jQuery.

I know only this:



        
9条回答
  •  伪装坚强ぢ
    2020-11-30 20:50

    A very simple way is to add the image as a background to a DIV then load an empty transparent gif set to the same size as the DIV in the foreground. that keeps the less determined out. They cant get the background without viewing the code and copying the URL and right clicking just downloads the transparent gif.

提交回复
热议问题