How to automatically allow blocked content in IE?

前端 未结 7 1528
广开言路
广开言路 2020-11-27 04:35

I am using below code for sample menu.

    

Tree Demo


        
相关标签:
7条回答
  • 2020-11-27 04:46

    Steps to configure IE to always allow blocked content:

    1. From Internet Explorer, select the Tools menu, then the Options...
    2. In the Internet Options dialog, select the Advanced tab...
    3. Scroll down until you see the Security options. Enable the checkbox "Allow active content to run in files on My Computer".

    1. Close the dialog, and quit Internet Explorer. The changes will take effect the next time you start IE.

    The Blocked Content is a security feature of Windows XP Service Pack 2. If you do not have SP2 installed, then you will never see this message.

    From: How To Allow Blocked Content on Internet Explorer

    0 讨论(0)
  • 2020-11-27 04:48

    Alternatively, as long as permissions are not given, the good old <noscript> tags works. You can cover the page in css and tell them what's wrong, ... without using javascript ofcourse.

    0 讨论(0)
  • 2020-11-27 04:52

    If you are to use the

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

    or

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

    make sure the HTML file is saved in windows/dos format with "\r\n" as line breaks after the statement. Otherwise I couldn't make it work.

    0 讨论(0)
  • 2020-11-27 04:54

    You have two options:

    1. Use a Mark of the Web. This will enable a single html page to load. It See here for details. To do this, add the following to your web page below the doctype and above the html tag:

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

    2. Disable this feature. To do so go to Internet Options->Advanced->Security->Allow Active Content... Then close IE. When you restart IE, it will not give you this error.

    0 讨论(0)
  • 2020-11-27 04:56

    I believe this will only appear when running the page locally in this particular case, i.e. you should not see this when loading the apge from a web server.

    However if you have permission to do so, you could turn off the prompt for Internet Explorer by following Tools (menu) → Internet OptionsSecurity (tab) → Custom Level (button) → and Disable Automatic prompting for ActiveX controls.

    This will of course, only affect your browser.

    0 讨论(0)
  • 2020-11-27 05:06

    That's something I'm not sure that you can change through the HTML of the webpage itself, it's a client-side setting to tell their browser if they want security to be high. Most other browsers will not do this but from what I'm aware of this is not possible to stop unless the user disables the feature.

    Does it still do what you want it to do after you click on 'Allow'? If so then it shouldn't be too much of a problem

    0 讨论(0)
提交回复
热议问题