Javascript Tutorial


| Section 1 | Section 2 | Section 3 | Section 4 |
| Section 5 | Section 6 | Section 7 | Section 8 |
| Section 9 | Section 10 |


How do I block my document source?
How do I disable the right click?
How do I disable all clicks?
How do I disable the image toolbar?



How do I make block my document source?   This is a really fun script (IE) that was written by Urs Dudli and Peter Gehrig (included here with his permission). When you right click on your document, a small form window pops up telling your visitor that you will e-mail them your source...for a price!

demo


Add this tag to your <head> tag:



Then put this code in the body tag, you can change the table color and the font type. Also you need to change the mailto information to include your email:



up


How do I disable the right click?   The following script will disable the right click on your page (this script is provided here with written permission from the author). When someone right clicks to save an image off your page, a message will come up letting people know that your information is copyrighted. This script only works on the newer browsers, and it's not foolproof. If someone really wants something from your page they can find ways around it, but at least it's a warning to people who want to take your graphics. Just copy and paste the following code, and make sure it comes right after your <head> tag:



You can disable the right click without an alert by copying and pasting the following javascript in your <head> tag:



up


How do I disable all clicks?   The following script will disable all clicks on your page. This is not foolproof, of course nothing is ;) Just copy and paste the following code, and make sure it comes right after your <head> tag:



up


How do I disable the image toolbar?   You can disable the toolbar that appears when you right click an image in the IE6 broswer. The toolbar enables people to save your image, copy it etc., and disabling it can be helpful if you don't want people to be able to easily steal your images:

Image Toolbar


Add this tag to the head section of your site, this will disable the image toolbar for all the images on that page of your site:

<meta http-equiv="imagetoolbar" content="no">

You can disable it for one or more images if you want by adding the following tag to your image:

<img src="yourimage.gif" galleryimg="no">

up





| About Lissa | Privacy Statement | Contact | Link Us |

Copyright 1997-2016 Lissa, All rights reserved
This Web site is registered with the Library of Congress Copyright Office.


lissaexplains.com


Lissa Explains it All -- HTML Help for KidsHTML Help, css, frames, tables, div layersCustom CursorsHTML Help ForumFree E-mail Service for Kids (and adults who love bright colors ;)Lissa Explains it All -- Free PostcardsLissa Explains it All -- MerchandiseLissa Explains it All -- Guestbook
HTML BasicsHTML TutorialCSS TutorialFrames TutorialTables TutorialColor TutorialFree JavascriptsFun Free Stuff for your siteMySpace TutorialHTML Tutorial
spacer