Prevent mouse right click view source

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?
 
S

Steve Easton

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
 
B

Bob Lehmann

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
 
K

Kevin Spencer

.... 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.
 
G

Guest

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
 
G

Guest

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top