Click to See Complete Forum and Search --> : New window close with alert box


GurusGuru
04-03-2003, 04:02 AM
I have a form which opens in a new window. The form can be submitted once and if a person tries to submit the form again an alert box pops up with the message - "This form has already been submitted. Thanks!"
with a OK button. When one clicks the OK button, the pop up alert box closes.

What I want is that the new window/page containing the form should also close when the OK button is clicked. Can someone please modify the below mentioned lines so that the page also closes.


else
{
alert("This form has already been submitted. Thanks!");
return false;
}
return true;
}
// End -->

Ice3T
04-03-2003, 05:04 AM
else
{
alert("This form has already been submitted. Thanks!");
return false; self.close() ;
}
return true;
}
// End -->

GurusGuru
04-03-2003, 05:16 AM
Tried it. It doesn't work.

Ice3T
04-03-2003, 05:19 AM
was your window opened with javascript?

GurusGuru
04-03-2003, 05:38 AM
No.
target="_blank"