MarketSpace Technologies, Inc. Logo

MarketSpace Technologies, Inc. - Cross Browser Right Mouse Capture Script

 

 MST Homepage
 About MST
 MST Newsletter

 MST Resources
 mstSBuilder - Custom Script Generator
 100+ Free Backgrounds
 Over 150 Free Ad Sites!
 Essential Links
 Join our Link Share Program
 iNet related Tips and Tricks

 Search MST or the Web
 Contact MST

This site is Microsoft Internet Explorer 4.0x enhanced.
This site is Netscape Navigator 4.0x enhanced.
Customize your site the easy way!  mstSBuilder custom script generator.
Vote this site as a Starting Point HotSite

. Location: MST Home / Resources / Tips and Tricks / Right Mouse Capture

MST Resources
Tips and Tricks
Right Mouse Capture

Since people learned how to 'Right Click' and perform a 'View source' or 'Save image as...', protecting ones work has been practically impossible.  Sure, if you know JavaTM or ActiveX®, they can help in preventing this action since they are compiled, rather than interpreted, languages.  Both are very powerful and are useful for many tasks, however, it may not be ideal for every situation.  This is especially true if what you are trying to protect is client-side Dynamic HTML, where Javascript, CSS and HTML are the perfect environment.

Since HTML and Javascript are interpreted, the browser must be able to read and execute your code.  Since the leading browsers offer a means in which to 'Right Click' and 'View source', protecting your code has been practically impossible.  Sure, you can view the source from the browser toolbar, however, if your page is in a frameset, it becomes a little more difficult to view the source of the page.  Simply 'Right Click' in the frame and be presented with the opportunity to 'View source'.

While we can't absolutely stop the most determined individual from grabbing our code, we can hinder their ability to do so.  Capturing the Right Mouse button is just one step that we can perform, and since that is the issue at hand, this is the area that we will focus on.

We developed a cross browser compatible script, mstRMCapture.js, offering graceful degradation for older browsers, to capture the Right Mouse button.  We had such a response concerning our script, we're making it publicly available to use within your own Website.  Keep in mind, this isn't a means in which to absolutely stop source or image theft, it helps to slow the process, especially with novice designers.

<< Back ][ Next >>

[ Top of Page ]

.  


Related Topics

. Forms:
CGI-Less Forms

Browser Tips:
Browser Redirection
Frame Removal
Remote Window
Right Mouse Capture

Hyperlinks:
Text Mouseovers

Graphics Tips:
Faster Loading Graphics
Backgrounds for All Resolutions

Scripts:
Status Bar Message
Confirmation Dialog
Clock on a Button
Text Field Clock

.

 

Copyright © 1997-2000, MarketSpace Technologies, Inc.
All Rights Reserved.