Please help me am facing a problem with a
Java Script error.
I have a
JSP page which takes input and validates the data with the database values and gives a report that opens in a new window.
The window has to be open for 30000ms(Milli Sec) then it should give an alert mesg and then it should close.
When the submit button is pressed a new window is opened and report gets generated and displayed in this new window,
As soon as this new window pops up, the focus will be jumping to main JSP and this new window gets minimized.
This is the code that closes the window after 30000 seconds.
My problem is, when the new window is in minimized state this code performs well and the window gets closed with the alert mesg specified.
But when i forcefully open the minimised window i get a JavaScript error and the window does not close.
Line: 1
Char: 1
Error: Permission Denied
Code: 0