Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Disbale ViewSource and SaveAs

 
Mike Jeya
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.
 
Sandip Sarkar
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
 
Eric Pascarello
author
Rancher
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic