treehouse : what would you like to learn today?
Web Design Web Development iOS Development

IE Prevents running scripts

  • I've made a page with drop-down menu's and when opening the page on IE, it displays the caution:
    "internet explorer has restricted this web page from running scripts". this prevents my drop-down's from working properly.

    It's possible to allow blocked content, but i'm afraid some users won't know to do it. Is there some sort of code that i can insert that will deem my website as "safe" in order to prevent this warning from ie?
  • Is this on your own pc? Because IE blocks javascripts and other scripts on a local machine. Try to upload it to a host to see if it works.
  • That usually only happens on your local machine. If you're getting the same message off of a server, try adding this line to the top of your document:

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


    More info on how/why this works here.