Remove the restriction of the IE blocking pop-up window. Disable the confirmation dialog box when closing the pop-up window.

Source: Internet
Author: User

The Methods seen on an OA system are recorded here:

1. Save the following file as IE. reg and double-click it to import the registry.

Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows]"PopupMgr"="no"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]"1609"=dword:00000000[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1]"1609"=dword:00000000[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]"1609"=dword:00000000[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]"1609"=dword:00000000[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4]"1609"=dword:00000000[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1]"http"=dword:00000002":Range"="172.18.0.8"[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows\Allow]"172.18.0.8=hex:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WINDOW_RESTRICTIONS]"iexplore.exe"=dword:00000000"explorer.exe"=dword:00000000

Change "172.18.0.8" to the actual IP address.

2. if the system is IE7 or later, you need to modify the default settings.

In IE7 and later versions, for how to open the pop-up window, in Internet Settings, choose General> tab Settings> when a pop-up window is displayed: We recommend that you select IE to determine how to open the pop-up window.
3.put A closeie7.htm file under the website root directory. The content is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

4. In the pop-up window, add the following steps to the login page:

Function closeIt () {var nAppName = navigator. appName; var nAppVersion = navigator. appVersion; if (nAppName = "Netscape") {nVersionNum = nAppVersion. substring (0, 2);} else {var startPoint = nAppVersion. indexOf ("MSIE") + 5; nVersionNum = nAppVersion. substring (startPoint, startPoint + 3);} try {if (nVersionNum> = 7) {window. open ("closeIE7.htm", "_ self");} else if (nVersionNum> 5.5) {window. opener = null; window. close ();} document under else {// IE5.5. write ("<object classid = clsid: adb880a6-d8ff-11cf-9377-00aa003b7a11 id = closes> <param name = Command value = Close> </object>"); closes. click () ;}} catch (e ){}}

5. Call the function in the pop-up window

Function winopen (targeturl) {var isMSIE = (navigator. appName = "Microsoft Internet Explorer"); if (isMSIE) {var newwin = window. open ('','', 'resizable = true, status = no'); try {newwin. focus ();} catch (e) {alert ("You have enabled the window Interception Function. disable this function first. "); Self. history. back (); return;} if (newwin! = Null & document. all) {newwin. moveTo (0, 0); newwin. resizeTo (screen. width, screen. height-25);} newwin. location = targeturl; closeIt (); // ================================================ ==================================== here call} else {window. open (targeturl, '', 'height = '+ window. screen. height + ', width =' + window. screen. width + ', top = 0, left = 0, toolbar = no, menubar = no, scrollbars = no, resizable = no, location = no, status = no') window. close ();}}

Modify IE security settings through the registry, see: http://blog.csdn.net/huanshanv20008/article/details/5676323

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.