关闭页面JS兼容火狐_谷歌_IE6、7、8
JS代码如下:
<script language="javascript" type="text/javascript">
function closeme()
{
var browserName = navigator.appName;
if (browserName == "Netscape")
{
window.open('', '_parent', '');
window.close();
}
else if (browserName == "Microsoft Internet Explorer")
{ window.opener = "whocares"; window.close(); }
}
</script>
function closeme()
{
var browserName = navigator.appName;
if (browserName == "Netscape")
{
window.open('', '_parent', '');
window.close();
}
else if (browserName == "Microsoft Internet Explorer")
{ window.opener = "whocares"; window.close(); }
}
</script>