Hi,
In a simple web app I'm opening a modal window which loads a jsp using
window.showModalDialog
. I have the following questions:
I have a button in the JSP within the modal dialog. It has a click handler that says:
document.location.href = 'http://www.google.com'
. Problem is, when the button is clicked, the parent window's location changes and things go wrong. How can I ensure that when that button is clicked, the modal's window's url changes to google.com?From the parent page that opened the modal window, how can I change the url of the modal window? Say from the parent window I opened dog.jsp in the modal window. Now, from the parent JSP, how can I change the location of that window to cat.jsp?
Thanks.