• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to Disbale ViewSource and SaveAs

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw some webpage have disabled the "Source" option under the "View" menu item on the menu bar

I already disable the right mouse clicking on my webpage by using JavaScript. I want to know how to disable the view source select from the menu bar as well.
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I did some google on your issue and what i got to know is quite logical. The server has to send the data to the client and hence will be available in some readable format. You cannot do this through javascript.
As we know, javascript cannot access anything outside the web page. However there may be an ActiveX control that can do it for you. But still that too can be disabled.

Thanks,
Sandip
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can not be done. If it could be done, do you think Google, Hotmail, Yahoo, etc would let you look at their code?

Eric
 
Don't listen to Steve. Just read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic