?
Solved

Hide "View Source" in HTML

Posted on 2009-04-15
7
Medium Priority
?
384 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 13

Expert Comment

by:qwerty021600
ID: 24146800
0
 
LVL 12

Accepted Solution

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

Author Comment

by:PuneetKSaxena
ID: 24262743
Ok..
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

762 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