/    Sign up×
Community /Pin to ProfileBookmark

disable right-click for images

I used the Javascript code in my FrontPage pages to disable the right-click for images and find out that after saving the pages, I can no longer see about 80% of the html code. THe page, however, does display properly and I cannot right-click to “lift” an image.

What do I have to do to see all the html code and still disable right-click?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@JPnycMar 06.2005 — Just lose the disable script. Does no good anyway. All anyone has to do is drag'n drop the image to the address bar, and they got it anyway. They can view source and get the url to the img, also. If they want it, they can get it.
Copy linkTweet thisAlerts:
@the_treeMar 06.2005 — Not only is trying to disable right click futile, it's also extreemly annoying.
Copy linkTweet thisAlerts:
@Mark_PurintunauthorMar 06.2005 — Thanks for the tips about losing the script.

By the way - I didn't know about moving the image to the address bar - and I'm not sure too many other people do either.

Mark Purintun
Copy linkTweet thisAlerts:
@felgallMar 06.2005 — Ways to steal an image from a web page:

  • 1. right click

  • 2. IE6 image toolbar (that appears when you hover over the image)

  • 3. copy from browser cache

  • 4. save the page

  • 5. view page source to find filename and display image in browser window by itself

  • 6. disable no right click script bookmarklet


  • and many more.

    Only the first two of these can be blocked so doing so doesn't achieve much (except to annoy visitors who legitimately use the right click menu for other purposes such as navigation).
    ×

    Success!

    Help @Mark_Purintun spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...