PDA

View Full Version : Question about IE&Firefox



satterman
11-08-2007, 03:17 AM
Hi,I'm a new guy in learning JS.I have a question about the IE and FF:
----------------------------------------------------
<html>
<head>
<title></title>
<script language="JavaScript">
function onSysLogout()
{
top.close();
}
</script>
</head>
<body >
<table>
<form name="form_logout" method="get">
<TR>
<TD>
<A id=title style="text-decoration:underline; cursor:pointer" onClick="onSysLogout()">Exit</A>
</TD>
</TR>
</form>
</table>
</body>
---------------------------------------------
I want to close the window through clicking the "Exit" on my page.In IE7 it works,but not in firefox.I really appreciate any answering.

satterman
11-08-2007, 06:03 AM
I try to use "about:config" in firefox ,and set the "dom.allow_scripts_to_close_windows" to be TRUE.
Firefox will not close the window which is not openned by itself,is that right?
Thanks!