JavaScript not working on Internet Explorer 11 unless Developer mode is on
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
|
show 9 more comments
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
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
|
show 9 more comments
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
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
javascript internet-explorer-11
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
|
show 9 more comments
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
|
show 9 more comments
1 Answer
1
active
oldest
votes
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Jan 2 at 17:03
Marwah AbdelaalMarwah Abdelaal
566
566
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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