Hi
If you only want your users not to access the source code by right clicking
on your webpage, then you can use javascript code, BUT it is NOT FOOL PROOF
!!!
Here is the code:
<script language=JavaScript>
<!--
var message="Sorry, Function Disabled";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
Hope this is useful to you.
Thanks,
John Neil N. Sangalang
----- Original Message -----
From: Padmakar Neelapareddy <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 2:14 PM
Subject: How to hide a user from seeing source code of web page...
> Dear All,
>
> I wanna know if there is any way to restrict the user from seeing source
> code of web page
> (i.e by right clicking on page).I.e whenever he gives rigth click on page
he
> shouldn't see the
> pop-up menu usually comes,instead he should be warned with a message/alert
> pop-up window
> mentioning deneid message.
>
> If anybody knows the procedure ,please let me know...(***preferably with
> appropriate code****)
>
> Thanx in advance...
>
> Rgds
> padmakar neelapareddy.
>
>
>
>
> The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets