This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to close pop up window?

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating as jsp as an pop-up menu now after some evenet(day button press) I have to close that window no idea how to do it?
 
Roshan Ramesh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The button used to close the window is associated with an event called "onclick" which can be added as an attribute to the button declaration.
All you need to do is to call the "window.close()" DOM method in the value of this attribute.
Hence, you need something like this onclick="window.close()"

Is this is all what you wanted...?
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



I Tried it and many more thing but all comes to failure...
 
Roshan Ramesh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the below line of code too fails in your application...?
onclick="javascript:window.close();"
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is also not working...

basically I am using two jsp first one is ManageUser.jsp ...from I am calling another jsp ManagerUSerEdit,jsp(which works as a pop-up)

Code for calling ManagerUSerEdit.jsp from ManageUser.jsp

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hurray

The below code works for me

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic