Javascript trick: closing a Firefox tab
Find out that the plain ol' window.close() doesn't actually close the window if the window is a tab in Firefox? Basically, it doesn't consider the tab to be opened by script... so you need to trick the browser into thinking that hte page was opened by script, then close it. Interwebby.com came up with this nifty workaround:
<script language="javascript" type="text/javascript">
function closeWindow() {
window.open('','_parent','');
window.close();
}
</script>