+ 7

Whats wrong with this code?

https://code.sololearn.com/<WvkbH5TClxTR> ??????

1st Sep 2018, 10:39 PM
Jingga Sona
Jingga Sona - avatar
7 Answers
+ 8
Roel Thanks a kot roel!!! i didnt know that! Thanks!
1st Sep 2018, 10:49 PM
Jingga Sona
Jingga Sona - avatar
+ 5
Rafey Iqbal Rahman i deleted the code... because it solved. the <WvkbH5TClxTR> Is The Code's Url
2nd Sep 2018, 10:22 AM
Jingga Sona
Jingga Sona - avatar
+ 3
The problem is that you called your onclick function inside the window.onload function that doesn't allow functions to occur this code might help you understand your problem better https://code.sololearn.com/WMShlA8Wg4jW/?ref=app
1st Sep 2018, 10:47 PM
Roel
Roel - avatar
+ 2
Since there's no input provided in the code, hence the result is "No output."
2nd Sep 2018, 9:31 AM
Rafey Iqbal Rahman
Rafey Iqbal Rahman - avatar
+ 2
Jingga Sona you're welcome, I hope it will help you in the future
2nd Sep 2018, 10:55 AM
Roel
Roel - avatar
+ 2
btw what also works is just deleting the window.onload function and copy the javascript between <script> tags to make sure the HTML is loaded before the javascript is executed
2nd Sep 2018, 10:57 AM
Roel
Roel - avatar
+ 2
Jingga Sona nevermind.
2nd Sep 2018, 4:48 PM
Rafey Iqbal Rahman
Rafey Iqbal Rahman - avatar