# Javascript Calculator not working on Internet Explorer,UC browser,Dolphin Browsers

**URL:** <https://forum.freecodecamp.org/t/javascript-calculator-not-working-on-internet-explorer-uc-browser-dolphin-browsers/169856>\
**Category:** General\
**Created:** [January 20, 2018, 9:02am UTC](https://forum.freecodecamp.org/t/javascript-calculator-not-working-on-internet-explorer-uc-browser-dolphin-browsers/169856 "2018-01-20T09:02:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayurnagdev123](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mayurnagdev123/32/78247_2.png) [@mayurnagdev123](https://forum.freecodecamp.org/u/mayurnagdev123)\
**Post date:** [January 20, 2018, 9:02am UTC](https://forum.freecodecamp.org/t/javascript-calculator-not-working-on-internet-explorer-uc-browser-dolphin-browsers/169856/1 "2018-01-20T09:02:27Z")

</div>

hello there.i just completed creating a ‘java script calculator’ that was one of the Freecodecamp’s advanced front end project.  
…  
the link is [https://codepen.io/mayurnagdev123/full/EorVBV](https://codepen.io/mayurnagdev123/full/EorVBV)

The calculator works perfectly on Goole Chrome but when i open it in any other broswer,nothing happens on clicking the buttons…please look into the issue…  
any help would be highly appreciated…

---

<div class="post-metadata">

**Author:** ![ead](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ead/32/113890_2.png) [@ead](https://forum.freecodecamp.org/u/ead)\
**Post date:** [January 20, 2018, 9:48am UTC](https://forum.freecodecamp.org/t/javascript-calculator-not-working-on-internet-explorer-uc-browser-dolphin-browsers/169856/2 "2018-01-20T09:48:31Z")

</div>

well apparently you use a method that doesn’t exist:

```
 document.getElementById("myDiv").append(y);

```

to do something like that you need to add jquery and to use it like $("#myDiv").append(y)  
the bare js has the method appendChild() i think it works about like jquery append(), probably chrome still understands what you want but the other browsers don’t since it’s a violation of the standards

you could just use the js console in ie (f12) and it would tell you the line which creates the problem

---

<div class="post-metadata">

**Author:** ![mayurnagdev123](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mayurnagdev123/32/78247_2.png) [@mayurnagdev123](https://forum.freecodecamp.org/u/mayurnagdev123)\
**Post date:** [January 20, 2018, 10:06am UTC](https://forum.freecodecamp.org/t/javascript-calculator-not-working-on-internet-explorer-uc-browser-dolphin-browsers/169856/3 "2018-01-20T10:06:13Z")

</div>

well thanks for your help:smiley:…that means i’ll have to change a lot of my code now:tired\_face:

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:29pm UTC](https://forum.freecodecamp.org/t/javascript-calculator-not-working-on-internet-explorer-uc-browser-dolphin-browsers/169856/4 "2021-01-17T20:29:56Z")

</div>


