Ultimate Script Protection
Place the following script in your script page so that it must be referrer to from the calling page.
The drawback with this option is you will always be referrered to the calling page if you step back
from another page in your site. This may work well with a site with few pages.
if (document.referrer != 'your calling page')
document.location.replace('your calling page');
Call your script page from within a script off another page disabling the menubar and toolbar.
This will eliminate the user select "view source" from the menu, and "edit source" from the toolbar.
In turn call the go function from a button or link on the calling page.
Script page=window.open("script page.html","script page","toolbar=no, menubar=no");
Script Page.location.replace('script page.html');
Netscape allows for script commands that set the browser toolbar and menubar's visiblity.
I tried these but could not seem to get them to work.
Option 4 (a must for IE users)
if (event.button == 2 | event.button == 3)
alert("Protected by: Secure Script");
Visit my Homepage
to see a working example.