JavaScript Forum JS Made Easy: Free JavaScripts Tutorials Example Code
About This Product
FontsMadeEasy.com
 
The Business Internet
Find it on This page:
 
| Over 5000 Free Fonts | Tutorials | Javascript Forum | Other Javascript Resources | Cheat Sheet

     
Jsmadeeasy Forums Home   Search   Login   Register   Member List  
JS Made Easy  > JavaScript programming  > How i can disable view source menu  
 
Display using:  
Previous Thread :: Next Thread 
 Author Thread: How i can disable view source menu
ssundar is not online. Last active: 7/28/2004 3:52:08 PM ssundar
Top 50 Poster
Joined: 28 Jul 2004
Total Posts: 3
 
How i can disable view source menu
Posted: 22 Apr 2002 05:14 AM
Hi
iam sundar.i want to know how i can disable view source menu using javascript.
bye
sundar

sundar

sundar
kozak98 is not online. Last active: 7/28/2004 3:52:08 PM kozak98
Top 25 Poster
Joined: 28 Jul 2004
Total Posts: 11
 
Re:
Posted: 22 Apr 2002 08:04 AM
Hi. I don't know how to disable the "view source" in the "menu bar", but this is how you disable the "right click" button on the page.
(some one already asked this question a few question before yours.. so.. this code originaly came from "hanamaru")


<!--
function click() {
if (event.button==2) {
alert('Ooops! This image is copyrighted.')
}
}
document.onmousedown=click
//-->


STEP 2: Then paste this line of code into the body of your html file.


<SCRIPT LANGUAGE="javascript" SRC="scripts/script.js"></SCRIPT>





Previous Thread :: Next Thread 
Page 1 of 1
 
Jsmadeeasy.com  > JS Made Easy  > JavaScript programming  > How i can disable view source menu