On clicking an image in
jsp page, I am opening a pop up as follows,
<img src="${imgBanner}" style="cursor:hand; cursor:pointer" onClick="openPopup('Demo', document.all ? 524 : 524,'PopName', event);">
In the pop up window, there is a submit button. On clicking it, the pop up must close and page must be redirected to a different site.
Suppose the pop up window was closed instead of clicking the submit button, nothing must be done.
The pop up contents is just plain html page.
I have tried with adding a close_window() function on clicking the button in pop up, but getting the following js error on clicking the button,
Message: 'window.opener' is null or not an object
Please let me know how to correct it?
FYI, the demo.html page is displayed from weblogic repository and contentviewer.jsp takes care of that (nevermind of this part)
--jsp page
--demo.html
--js file