Mortgage - Credit Card - Loans - Bad Credit Mortgages - Job Listing

PDA

View Full Version : self.close() in firefox


kjewat
Aug 30th 2005, 1:49 am
Hi.

I have the following code which seems to work fine in IE and opera, but not in firefox.


<head>
<script type="text/javascript">
<?php if(something....){
echo "self.close();";
}else{
//something else
}
?>
</script>
</head>


The window closes in IE and opera like it was supposed to, but nothing happends in firefox. Any ideas?

EDIT: It seems to work fine if I open a single window, but not if I open the window in a tab...