non-viewable source

G

Guest

I have noticed that it is impossible to view the HTML source on some web
sites, whether using the mouse right-click or view source option in the
browser window. I think this is a nice feature when there is a lot of
copyrighted material in the HTML, and would like to know how is this
accomplished. Is it a program you have to buy, or an HTML command you can
insert on a page? If so, could someone tell me the program or the HTML
please?
 
T

Trevor L.

Tat said:
I have noticed that it is impossible to view the HTML source on some
web sites, whether using the mouse right-click or view source option
in the browser window. I think this is a nice feature when there is
a lot of copyrighted material in the HTML, and would like to know how
is this accomplished. Is it a program you have to buy, or an HTML
command you can insert on a page? If so, could someone tell me the
program or the HTML please?

You asked this once before.

I found this code on w3schools
<body>
<head>
<script type="text/javascript">
function doNothing() {
setTimeout(//do nothing,1000) }
</script>
</head>
<body onRightClick="doNothing()">

I am not sure how the *comment* //do nothing would actauly be executed, but
you could try it. If it doesn't work substitute some other code, say var x
=0
And onRightClick may not be valid in all browsers.

But as I stated before, this doesn't prevent the code from being viewed
 
G

Guest

Thank you again. I asked twice because the first time I refureshed about 8
times in 10 min. and my question didn't appear, so I thought maybe I clicked
 
T

Trevor L.

Tat said:
Thank you again. I asked twice because the first time I refureshed
about 8 times in 10 min. and my question didn't appear, so I thought
maybe I clicked on close instead of send. After asking a second
time, both questions were there when I refreshed.

Yes, this can be annoying.

I hope that both my anseers were useful.

You answered so quickly that you are either up late in the USA or like me on
the other side of the Paciifc (Australia)
 
G

Guest

Correct about being up late. I've been building my site for a month now for
about 15-18 hours a day trying to get it ready to publish, so I'm not too
sure whether it's day or night half the time at this point.
 

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