JavaScript not working on Internet Explorer 11 unless Developer mode is on












-5















JavaScript is not working on Internet Explorer 11 - even a simple alert() is not working, unless debugging mode (F12) is on.



I'm not using any console/log related code lines.



<script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function () {
alert('HERE');
});
</script>


Console Error:




Object doesn't support property or method 'addEventListener'




I know that this question has been asked multiple times but even in the comments people are saying that suggested solutions didn't work with IE 11










share|improve this question




















  • 1





    Please show an example of the non-working JavaScript and HTML.

    – Herohtar
    Dec 31 '18 at 18:41













  • @Herohtar just did

    – Marwah Abdelaal
    Dec 31 '18 at 18:45






  • 1





    We need a Minimal, Complete, and Verifiable example to help you, with emphasis on "complete".

    – Amy
    Dec 31 '18 at 18:46













  • I have it <script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>

    – Marwah Abdelaal
    Dec 31 '18 at 18:47











  • Previous versions of IE developer tools will not work on IE11. Uninstall any previous tools (especially standalone version installations) if (still) present, and make a fresh (re)install of the latest IE11 download. Don't try to install IE tools over IE11 installation separately because they are already threre as a part of IE11 installation. Doing so will make a conflict that will reflect in experienced result. Reboot the computer even if not prompted. Good luck

    – Govind Parashar
    Dec 31 '18 at 18:47
















-5















JavaScript is not working on Internet Explorer 11 - even a simple alert() is not working, unless debugging mode (F12) is on.



I'm not using any console/log related code lines.



<script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function () {
alert('HERE');
});
</script>


Console Error:




Object doesn't support property or method 'addEventListener'




I know that this question has been asked multiple times but even in the comments people are saying that suggested solutions didn't work with IE 11










share|improve this question




















  • 1





    Please show an example of the non-working JavaScript and HTML.

    – Herohtar
    Dec 31 '18 at 18:41













  • @Herohtar just did

    – Marwah Abdelaal
    Dec 31 '18 at 18:45






  • 1





    We need a Minimal, Complete, and Verifiable example to help you, with emphasis on "complete".

    – Amy
    Dec 31 '18 at 18:46













  • I have it <script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>

    – Marwah Abdelaal
    Dec 31 '18 at 18:47











  • Previous versions of IE developer tools will not work on IE11. Uninstall any previous tools (especially standalone version installations) if (still) present, and make a fresh (re)install of the latest IE11 download. Don't try to install IE tools over IE11 installation separately because they are already threre as a part of IE11 installation. Doing so will make a conflict that will reflect in experienced result. Reboot the computer even if not prompted. Good luck

    – Govind Parashar
    Dec 31 '18 at 18:47














-5












-5








-5








JavaScript is not working on Internet Explorer 11 - even a simple alert() is not working, unless debugging mode (F12) is on.



I'm not using any console/log related code lines.



<script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function () {
alert('HERE');
});
</script>


Console Error:




Object doesn't support property or method 'addEventListener'




I know that this question has been asked multiple times but even in the comments people are saying that suggested solutions didn't work with IE 11










share|improve this question
















JavaScript is not working on Internet Explorer 11 - even a simple alert() is not working, unless debugging mode (F12) is on.



I'm not using any console/log related code lines.



<script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function () {
alert('HERE');
});
</script>


Console Error:




Object doesn't support property or method 'addEventListener'




I know that this question has been asked multiple times but even in the comments people are saying that suggested solutions didn't work with IE 11







javascript internet-explorer-11






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 31 '18 at 18:59







Marwah Abdelaal

















asked Dec 31 '18 at 18:37









Marwah AbdelaalMarwah Abdelaal

566




566








  • 1





    Please show an example of the non-working JavaScript and HTML.

    – Herohtar
    Dec 31 '18 at 18:41













  • @Herohtar just did

    – Marwah Abdelaal
    Dec 31 '18 at 18:45






  • 1





    We need a Minimal, Complete, and Verifiable example to help you, with emphasis on "complete".

    – Amy
    Dec 31 '18 at 18:46













  • I have it <script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>

    – Marwah Abdelaal
    Dec 31 '18 at 18:47











  • Previous versions of IE developer tools will not work on IE11. Uninstall any previous tools (especially standalone version installations) if (still) present, and make a fresh (re)install of the latest IE11 download. Don't try to install IE tools over IE11 installation separately because they are already threre as a part of IE11 installation. Doing so will make a conflict that will reflect in experienced result. Reboot the computer even if not prompted. Good luck

    – Govind Parashar
    Dec 31 '18 at 18:47














  • 1





    Please show an example of the non-working JavaScript and HTML.

    – Herohtar
    Dec 31 '18 at 18:41













  • @Herohtar just did

    – Marwah Abdelaal
    Dec 31 '18 at 18:45






  • 1





    We need a Minimal, Complete, and Verifiable example to help you, with emphasis on "complete".

    – Amy
    Dec 31 '18 at 18:46













  • I have it <script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>

    – Marwah Abdelaal
    Dec 31 '18 at 18:47











  • Previous versions of IE developer tools will not work on IE11. Uninstall any previous tools (especially standalone version installations) if (still) present, and make a fresh (re)install of the latest IE11 download. Don't try to install IE tools over IE11 installation separately because they are already threre as a part of IE11 installation. Doing so will make a conflict that will reflect in experienced result. Reboot the computer even if not prompted. Good luck

    – Govind Parashar
    Dec 31 '18 at 18:47








1




1





Please show an example of the non-working JavaScript and HTML.

– Herohtar
Dec 31 '18 at 18:41







Please show an example of the non-working JavaScript and HTML.

– Herohtar
Dec 31 '18 at 18:41















@Herohtar just did

– Marwah Abdelaal
Dec 31 '18 at 18:45





@Herohtar just did

– Marwah Abdelaal
Dec 31 '18 at 18:45




1




1





We need a Minimal, Complete, and Verifiable example to help you, with emphasis on "complete".

– Amy
Dec 31 '18 at 18:46







We need a Minimal, Complete, and Verifiable example to help you, with emphasis on "complete".

– Amy
Dec 31 '18 at 18:46















I have it <script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>

– Marwah Abdelaal
Dec 31 '18 at 18:47





I have it <script type="text/javascript" src="./Common/JS/jquery-2.1.1.min.js"></script>

– Marwah Abdelaal
Dec 31 '18 at 18:47













Previous versions of IE developer tools will not work on IE11. Uninstall any previous tools (especially standalone version installations) if (still) present, and make a fresh (re)install of the latest IE11 download. Don't try to install IE tools over IE11 installation separately because they are already threre as a part of IE11 installation. Doing so will make a conflict that will reflect in experienced result. Reboot the computer even if not prompted. Good luck

– Govind Parashar
Dec 31 '18 at 18:47





Previous versions of IE developer tools will not work on IE11. Uninstall any previous tools (especially standalone version installations) if (still) present, and make a fresh (re)install of the latest IE11 download. Don't try to install IE tools over IE11 installation separately because they are already threre as a part of IE11 installation. Doing so will make a conflict that will reflect in experienced result. Reboot the computer even if not prompted. Good luck

– Govind Parashar
Dec 31 '18 at 18:47












1 Answer
1






active

oldest

votes


















0














this line solved my issue, just make sure to add at the top of your head tag



<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />


Thanks to this answer https://stackoverflow.com/a/6771584/6240803






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53990469%2fjavascript-not-working-on-internet-explorer-11-unless-developer-mode-is-on%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    this line solved my issue, just make sure to add at the top of your head tag



    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />


    Thanks to this answer https://stackoverflow.com/a/6771584/6240803






    share|improve this answer




























      0














      this line solved my issue, just make sure to add at the top of your head tag



      <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />


      Thanks to this answer https://stackoverflow.com/a/6771584/6240803






      share|improve this answer


























        0












        0








        0







        this line solved my issue, just make sure to add at the top of your head tag



        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />


        Thanks to this answer https://stackoverflow.com/a/6771584/6240803






        share|improve this answer













        this line solved my issue, just make sure to add at the top of your head tag



        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />


        Thanks to this answer https://stackoverflow.com/a/6771584/6240803







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 17:03









        Marwah AbdelaalMarwah Abdelaal

        566




        566
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53990469%2fjavascript-not-working-on-internet-explorer-11-unless-developer-mode-is-on%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Mossoró

            Error while reading .h5 file using the rhdf5 package in R

            Pushsharp Apns notification error: 'InvalidToken'