0
JavaScript Part of My Web Code Bit Doesn't Work
Hello guys! I shared a web code bit recently and the JavaScript part does not work as expected. The same code works fine on my local machine and on GitHub webpages. https://code.sololearn.com/WPXTUpZFX11d/?ref=app https://github.com/THammami01/Simple-GUI-Calculator Please make sure not to view the output on portrait mode if you are using a phone because I didn't intend to make it responsive. Thanks.
2 Answers
+ 2
Wrap your js in an onload listener. Like this
onload = function(){
//All your javascript code
}
+ 1
Ore Thank you so much. Problem is solved :)