im using the function mail() to send an email to someone
I want to close the window after sending the email.
PHP Code:if(mail("$to","$subject","$message","$header"){
close the window
}
else{
...
}
Printable View
im using the function mail() to send an email to someone
I want to close the window after sending the email.
PHP Code:if(mail("$to","$subject","$message","$header"){
close the window
}
else{
...
}
<script language="Javascript">
function CloseWindow()
{
self.close();
}
</script>
I think thats what u want.
Although in IE, that code will cause a confirmation window to pop up if the window you are closing was not opened through code.