Two Laptop Bag
The moose likes JSP and the fly likes Close button not working using window.close method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Close button not working using window.close method" Watch "Close button not working using window.close method" New topic
Author

Close button not working using window.close method

Deepshan Shetty
Greenhorn

Joined: May 28, 2012
Posts: 28
Hi,

One of my JSP is forwarded from the previous page, the JSP has a close button which is not working now.
It works if the page is redirected.
But need to make this close button working.

I used window.close() now. I had even used self.close(). But none works.

Ca i know any other way to close the window?

Regards
Deepshan
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Deepshan Shetty wrote:I had even used self.close().

If you want to close current window[which is not opened using open()] then this is what you have to do. by the way: can you elaborate?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Close button not working using window.close method
 
Similar Threads
Submit form and close window
Print the main page after confirmation page is closed
Dialog for Input in JSP
Rereshing after modification / Listing
object dies when redirect=true