Why does IE restrict the JavaScript files of local

2019-04-03 04:49发布

Why does IE restrict JavaScript files from working when we open a local html file? The message says:

"To help protect your security, Internet explorer has restricted this web page from running scripts or ActiveX controls that could access your computer. Click here for the options"

Can anyone tell me how get get rid of this?

2条回答
倾城 Initia
2楼-- · 2019-04-03 05:37

In IE, go to Internet Options. Then 'Security' tab.

Set the 'local intranet' zone to low, and disable protected mode if on.

That should stop that message from being displayed. If that doesn't work, set a 'custom level' to allow javascript to run locally.

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-04-03 05:54

Check out http://msdn.microsoft.com/en-us/library/ms537628(v=vs.85).aspx

If you want to run in the Internet zone add this to your HTML source:

<!-- saved from url=(0014)about:internet -->

If you want to run in the Intranet zone add this to your HTML source:

<!-- saved from url=(0016)http://localhost -->

Either will stop the message from displaying and allow JavaScript to execute.

This will also allow the file to open on other PC's without having to change Internet Explorer options.

查看更多
登录 后发表回答