Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Disabling IE / Netscape Brower Buttons  RSS feed

 
laxmikant shimpi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
I wanted to know how to disable the browser buttons programmatically when the JSP page is loaded on client screen.
I wanted to know this to stop allowing user to view the JSP page source code by any means.

Please help me
Thanks and Regards,
Laxmikant
SCJP
 
Matt Howard
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, they won't see the JSP code if they view source- they can only see the HTML that has been produced. I don't know of any way to completely prevent a user from viewing the html & javascript.
In IE, you can disable right-clicking by setting document.oncontextmenu = new Function("return false;"); This won't disable the View > View Source menu option, and I'm not sure about Netscape.
If you open a window (with document.open), you can specify that the new window should not have a menubar or toolbar.
I'm not sure if any of that really gets at what you want. Do you really have html and javascript that you don't want users to see?
 
Omar IRAQI
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Salam All,
Actually the user cannot see the JSP code since it is proccessed and resolved at server side.
The user can only see the result of the JSP processing as a HTML page.
Now, how can you prevent the user from not seeing the HTML source ?
By not sending the response at all !
Regards
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!