J
Jan Tovgaard
Hey everyone
We have a critical problem, which I can see that other people also has ran
into.
In Internet Explorer 7 it is no longer possible to do a window.close after
opening a window,
without getting a alert message that ask if u want to close the window.
This did NOT happen in Internet Explorer 6, Mozilla firefox or other
browsers.
Here is the code:
<SCRIPT type="text/javascript">
WindowName="";
var left, top;
left = (window.screen.availWidth - 400)/2;
top = (window.screen.availheight - 250)/2;
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=no, top="+top+", left="+left+", height=250,width=400";
window.open('login.asp?p=ja&<%=Request.Querystring%>',WindowName,settings);
window.opener=self;
window.close();
</SCRIPT>
I have searched for days about this problem and have found the following.
http://www.codeproject.com/useritems/Immediate_Close__new_try_.asp
Can anyone get this example to work in IE 7 final?
Does anyone know another way to solve this problem with a hack
...?
In firefox there is a config file called user.js, where u can set
"allow_scripts_to_close_windows". Is there a file like this in IE 7 or
explorer?
We need to remove the toolbar, like above, with the window.open,
without getting this alert message..
if u can help solve this, i would call u the best programmer in the world
sincerly
Jan
We have a critical problem, which I can see that other people also has ran
into.
In Internet Explorer 7 it is no longer possible to do a window.close after
opening a window,
without getting a alert message that ask if u want to close the window.
This did NOT happen in Internet Explorer 6, Mozilla firefox or other
browsers.
Here is the code:
<SCRIPT type="text/javascript">
WindowName="";
var left, top;
left = (window.screen.availWidth - 400)/2;
top = (window.screen.availheight - 250)/2;
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=no, top="+top+", left="+left+", height=250,width=400";
window.open('login.asp?p=ja&<%=Request.Querystring%>',WindowName,settings);
window.opener=self;
window.close();
</SCRIPT>
I have searched for days about this problem and have found the following.
http://www.codeproject.com/useritems/Immediate_Close__new_try_.asp
Can anyone get this example to work in IE 7 final?
Does anyone know another way to solve this problem with a hack
In firefox there is a config file called user.js, where u can set
"allow_scripts_to_close_windows". Is there a file like this in IE 7 or
explorer?
We need to remove the toolbar, like above, with the window.open,
without getting this alert message..
if u can help solve this, i would call u the best programmer in the world
sincerly
Jan