Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

No Right Click (for images)

Featured Replies

(4.0+ browsers) Ever wanted to prevent users from "borrowing" images from your site through right-clicking them and "save image as..." or right-clicking the page and viewing your page source? This java-script will (attempt to) disable the right click on your page! As explained, however, this script is not fool-proof !!

<!-- TWO STEPS TO INSTALL NO RIGHT CLICK:

  1.  Copy the coding into the HEAD of your HTML document

  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<script LANGUAGE="JavaScript1.1">

<!-- Original:  Martin Webb (martin@irt.org) -->

<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

function right(e) {

if (navigator.appName == 'Netscape' &&

(e.which == 3 || e.which == 2))

return false;

else if (navigator.appName == 'Microsoft Internet Explorer' &&

(event.button == 2 || event.button == 3)) {

alert("Sorry, you do not have permission to right click.");

return false;

}

return true;

}

document.onmousedown=right;

document.onmouseup=right;

if (document.layers) window.captureEvents(Event.MOUSEDOWN);

if (document.layers) window.captureEvents(Event.MOUSEUP);

window.onmousedown=right;

window.onmouseup=right;

//  End -->

</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<center>[ Try right-clicking the image and then the text link below ]

<p>

<img src="http://javascript.internet.com/img/tjsbutton.gif">

<p>

<a href="http://javascript.internet.com">Text Link</a>

<p><center>

<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

</center><p>

This was taken from - http://javascript.internet.com/page-detail...ight-click.html.


Not fool proof at all, and btw there is a AllowRightClick extension for firefox :)

  • Author
Not fool proof at all
If anything can be done, it can be undone as well.

Of course, but it prevents the casual surfer from laying hands on your images.

**Response to below:

Microsoft offers code, to disable the Image toolbar popping up on a page.

if you place your cursor over an image, a little toolbar pops up, press save and voila! you bored an image.

if you would place your images in flash, any way you like (viewer, movie etc.)

then the pop up won't work + you can't right-click on an image an choose save as since it is a .swf

i think you can use when you will read the code of the page the menu from your browser.

or you use the key on your keyboard so the function to block the mouse is not realy good :)

so long

darph

  • 2 weeks later...
Not fool proof at all, and btw there is a AllowRightClick extension for firefox :)

lol, one of my "Must Have" Extensions... I hate sites that try blocking the right click. and if the right click extention doesn't work... its a simple Tools -> Page Info -> *media tab* -> Pick the picture and hit save lol.

if that second thing doesn't work... just hit the print screen button go to paint, paste the image and save lol. :P

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.