?
Solved

Hide "View Source" in HTML

Posted on 2009-04-15
7
Medium Priority
?
390 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

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.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

757 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