• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Disabling IE / Netscape Brower Buttons

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Always look on the bright side of life. At least this ad is really tiny:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic