Solved

Hide "View Source" in HTML

Posted on 2009-04-15
7
381 Views
Last Modified: 2012-08-14
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
0
Comment
Question by:PuneetKSaxena
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 13

Expert Comment

by:qwerty021600
ID: 24146745
0
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 24146766
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
 

Author Comment

by:PuneetKSaxena
ID: 24146786
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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 13

Expert Comment

by:qwerty021600
ID: 24146800
0
 
LVL 13

Expert Comment

by:qwerty021600
ID: 24146808
0
 
LVL 12

Accepted Solution

by:
lexxwern earned 500 total points
ID: 24146951
Not possible.
0
 

Author Comment

by:PuneetKSaxena
ID: 24262743
Ok..
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question