Prevent mouse right click view source

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I’m a new webmaster using FrontPage 2003. I would like to know (sample of
html coding) how to prevent people from right clicking mouse and being able
to view source. I’ve been on a few web sites where I haven’t been able to
view source, so I know it can be done. How do I do this?
 
Google for "javasript no right click"

However, don't waste your time as it doesn't work. When the page is viewed the source is
in the browser cache files.

Also, all a visitor has to do is click File > "Save as Web Page" and it will be saved in
their My Documents folder where it Can be opened and viewed using any text editing
program.

Not trying to hurt your feelings but there is no such thing as "Proprietary html code."


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
Below is some HTML that is as effective as anything else at preventing No
right click.

<html>
<head>
<title> No Click </title>
</head>
<body>
<p><b>No Right Clicking to View Source!</b></p>
</body>
</html>

So, even if you could prevent right clicking, how will you prevent viewing
source via the View | Source item in the toolbar?

Bob Lehmann
 
.... or saving the HTML file to your system (File|Save As...) and opening it
with NotePad?

Here's the bottom line: If your computer can read it, so can you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
Thank You Bob for the time to answer.

Bob Lehmann said:
Below is some HTML that is as effective as anything else at preventing No
right click.

<html>
<head>
<title> No Click </title>
</head>
<body>
<p><b>No Right Clicking to View Source!</b></p>
</body>
</html>

So, even if you could prevent right clicking, how will you prevent viewing
source via the View | Source item in the toolbar?

Bob Lehmann
 
Thank for answering my question.

Steve Easton said:
Google for "javasript no right click"

However, don't waste your time as it doesn't work. When the page is viewed the source is
in the browser cache files.

Also, all a visitor has to do is click File > "Save as Web Page" and it will be saved in
their My Documents folder where it Can be opened and viewed using any text editing
program.

Not trying to hurt your feelings but there is no such thing as "Proprietary html code."


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
Kevin thanks for taking time to reply.

Kevin Spencer said:
.... or saving the HTML file to your system (File|Save As...) and opening it
with NotePad?

Here's the bottom line: If your computer can read it, so can you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
Back
Top