Important alert: (current site time 7/15/2013 12:34:08 PM EDT)
 

winzip icon

Disappearing Web Page On Right Click

Email
Submitted on: 1/18/2006 5:07:49 PM
By: Rahul Mahajan  
Level: Advanced
User Rating: By 8 Users
Compatibility: JavaScript
Views: 4772
author picture
(About the author)
 
     The script helps in vanishing the complete web page on pressing the right-click from mouse. It disable the right click menu of browser and protects the content from copying. Plus it gives a user an alert message. Easy to modify. If you like the script please rate it. To view the script online - http://rahul123.ipdz.com/disappear/
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

1/15/2006 4:17:21 PMvijay seth

Rahul you always develop code which are compleletly different from usual stuff! 5 pts. from me.
(If this comment was disrespectful, please report it.)

 
1/15/2006 4:31:41 PMArpita Vijayan

Great Stuff!
(If this comment was disrespectful, please report it.)

 
1/15/2006 4:39:17 PManurupa sarkar

disabling right click and vanishing content. Simple Awesome! 5pts.
(If this comment was disrespectful, please report it.)

 
1/15/2006 4:53:10 PMpeter johnson

something new but hardly in use!
(If this comment was disrespectful, please report it.)

 
1/16/2006 8:34:57 PMarren

amazing and drastyicall unique, fun to do
(If this comment was disrespectful, please report it.)

 
1/17/2006 1:25:38 PMRahul Mahajan

Thanks all!
(If this comment was disrespectful, please report it.)

 
1/17/2006 7:27:09 PMshilpi jain

nice piece of coding!
(If this comment was disrespectful, please report it.)

 
1/19/2006 12:36:50 PMneeraj

new in this series! good work!
(If this comment was disrespectful, please report it.)

 
1/22/2006 12:36:44 PMprerana

good comination of body tag with javascript. nice work!
(If this comment was disrespectful, please report it.)

 
1/22/2006 12:39:29 PMprerana

Rahul, please message to refresh the page again once the content vanish. Otherwise user don't get an idea how to view the web page again.
(If this comment was disrespectful, please report it.)

 
1/23/2006 1:55:48 PMmartin

impressive way to schok visitors.
(If this comment was disrespectful, please report it.)

 
11/20/2006 10:55:17 AMmike

WOW! This is an impressive trick here!
OH. Not the code. I'm talking about all the responses that praise your code. Are these all your friends or just bogus acts you created? Maybe a mix of each?

Your sample page indicates this has been tested in IE 4 - 6. Have you ever noticed in IE, up in the menu bar, there is a menu item named "View"?? If you click on this "View" menu item in the bottom section of the dropdown there is an item named "Source". Guess what it does... Yup! It allows one to "View" the "Source" of the displayed page. This by-passes any "on" JavaScript on your page. Give it a try.

As for the submission in the advanced category, this definitely is not. You get a vote of poor from me.

P.S. To the moderator reviewing this feedback. You might look into this code submission to see if there might not be something nefarious going on here.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.