I'm trying to reference two windows. I have a page index.html that opens up and a popup window popsup to get some JSP information. This window has a javascript that does a confirm. If the users says OK I want it to redirect index.html to another document. My code is below.. what am I doing wrong?
var anynonapproved = confirm("Is this okay?"
if(anynonapproved == true)
{
parent.location="approve00.jsp";
self.close();
}
else
{
self.close();
}
right now the popup window is redirecting itself and then closing, I want it to redirect it's "parent" window.
var anynonapproved = confirm("Is this okay?"
if(anynonapproved == true)
{
parent.location="approve00.jsp";
self.close();
}
else
{
self.close();
}
right now the popup window is redirecting itself and then closing, I want it to redirect it's "parent" window.