Link to home
Start Free TrialLog in
Avatar of PuneetKSaxena
PuneetKSaxena

asked on

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
Avatar of qwerty021600
qwerty021600
Flag of India image

Avatar of David H.H.Lee
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:
https://www.experts-exchange.com/questions/20784441/Impossible-To-Hide-HTML-Source.html
Avatar of PuneetKSaxena
PuneetKSaxena

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of lexxwern
lexxwern
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok..