473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

No confirmation window.close in IE7

Is there a better way than this in IE7 for an Intranet page on a
trusted site to close a non-script opened window?

var WshShell = new ActiveXObject("WScript.Shell");
WshShell.SendKeys("{ENTER}");
window.close();

Based on this:
http://www.codeproject.com/useritems...__new_try_.asp

Is there any kind of registry change that we can roll out on our LAN
that will allow window's to close themselves in Javascript for IE7?

Nov 9 '06 #1
2 12191
Matthew Lock said the following on 11/9/2006 2:43 AM:
Is there a better way than this in IE7 for an Intranet page on a
trusted site to close a non-script opened window?

var WshShell = new ActiveXObject("WScript.Shell");
WshShell.SendKeys("{ENTER}");
window.close();

Based on this:
http://www.codeproject.com/useritems...__new_try_.asp

Is there any kind of registry change that we can roll out on our LAN
that will allow window's to close themselves in Javascript for IE7?
<script type="text/javascript">
window.open('','_parent','');
window.close();
</script>

Until MS gets around to fixing it, will close IE7 without a prompt.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 9 '06 #2

Randy Webb wrote:
<script type="text/javascript">
window.open('','_parent','');
window.close();
</script>

Until MS gets around to fixing it, will close IE7 without a prompt.
Thanks.

It's a pity there's no way to enable non-script opened windows to be
closed by scripts in the security settings. It would be handy for
intranets.

Nov 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: PerryC | last post by:
Anyone know how to auto close the parent / opener window without confirmation? I have tried: <script> opener.window.close() </script> ----I put it in the child html page, and nothing...
2
by: kelvin | last post by:
Hi, I'm having this problem and I can't seem to solve it. I've created a confirmation page. The page displays the form field data and has 2 links - OK (to continue) and Cancel (go back to...
9
by: ScooterMX | last post by:
I have a <a href="javascript:top.window.close()"><img src="exit.gif"></a> tag on my page that closes itself when you click on it. What I NEED is for it to put up a confirmation message that...
2
by: James Doughty | last post by:
Hello, I am trying to circumvent my users from closing a page as much as possible. I they decided to close then so be it but I want to give them a message telling them they need to continue to...
2
by: steggun | last post by:
How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick Hello All, I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the server-side code for the LinkButton_OnClick...
0
by: meenu_susi | last post by:
hi.. i am having a default html page... and i want that page to get open without toolbar,addressbar..... i have written a javascript funtion for that.. in that i have used self.close(); but it...
9
by: shiks1305 | last post by:
Hi all, I want to submit a form after confirmation through a customised window. I have 4 buttons in <af:form>, one of which is continue button that has to navigate the form to another page while...
1
by: CutCopyPaste | last post by:
I need to close a window after unsuccessfull password attempts, the problem is the window has frames and is not opened using javascript. When trying to close the window confirmation message, i want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.