Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to disable browser’s address window?  RSS feed

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to disable browser’s address window (but keep it visible) so that my servlet application can only be navigated using page links etc.?
Thanks
 
jesse harris
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you would probably have to open a new window with a javascript and pass it the parameter to no show any tool bars.
 
Bosun Bello
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can use Javascript to open a new window without the location bar etc. The following opens a resizable window, with a status bar but no menu bar, toolbar, or locationbar.
var myWindow = window.open("the document", "width =200, height =200, status=yes,resizable=yes")
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies.
I saw in my library that their browser has address window visible but disabled (grey out). How could they do that?
Thanks
Bruce
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!