Hide "View Source" in HTML

Hi,

I want to hide the "View Source" option in my HTML Page.
Is there any Java Script code which hides the "View Source" Option.

Thanks and Regards
Puneet
PuneetKSaxenaAsked:
Who is Participating?
 
lexxwernCommented:
Not possible.
0
 
qwerty021600Commented:
0
 
David H.H.LeeCommented:
Hi PuneetKSaxena,
In one word - "No". You can have a lot of method to make novice difficult to access your source code. But, you can't stop user scrapping the HTML source other third party tool.
You can see the previous thread that i asked long time ago, hope it give you some insight for this matter:
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_20784441.html
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
PuneetKSaxenaAuthor Commented:
Hi,

In my case everything is building at runtime. XML is generated at run time and through XSL it is converted to HTML which is displayed in the browser, So i want some java script code to hide the view source option

Thanks
Puneet
0
 
qwerty021600Commented:
0
 
PuneetKSaxenaAuthor Commented:
Ok..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.