Solved

Hide "View Source" in HTML

Posted on 2009-04-15
7
368 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
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now