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

How to Hide the browser Close & minimise button

 
raghavan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my Jsp page I want to Hide the browser's close button.so that the user cant directly close the window by cicking on it.
what to do for hiding these buttons.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That has to be done on the browser side with Javascript. You can have Javascript create a new window and control the presence of things like the close button, resizability, etc.
Unfortunately my Javascript knownledge is somewhat out of date so I can't give specifics.
Bill
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a new window in Javascript with the opn method, and then specify it's characteristics.
ex: var myWin = window.open(windowsurl,name, width,height, resizable, etc)

Bosun
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"raghavan",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic