简体   繁体   中英

How to change security configutarion in IE8 for Intranet pages, such that Javascript can close a Window without asking?

I am developing a system that uses a little Internet page as a front-end for the whole program. Since I need to use ActiveX (sigh), the page must work on Internet Explorer.

However, after some actions have been done the page needs to close itself. Using window.close() on Javascript it works, but before closing it prompts the user if it wants to close the Window. The ideal would be that it closes automatically.

Is there any way to make IE8 (changing an option on the browser, not a code-only solution) not to prompt before closing the Window?

You must have the Windows Administrator mark the domain that the intranet site runs on as a trusted domain. That will set the site to run in "trusted" mode which will allow Javascript to run normally and things like NTLM authentication to be used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM