• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

Why it doesn't work?

https://code.sololearn.com/WAODEl9J2Bs9/?ref=app

jshelpwith
13th Jun 2018, 12:53 AM
Sina
Sina - avatar
2 Answers
+ 2
yes thanks
13th Jun 2018, 1:04 AM
Sina
Sina - avatar
+ 1
Sina you have to wrap the code inside an onload function. window.onload = function(){ //your code here... } Here's a reference https://www.sololearn.com/post/7444/?ref=app
13th Jun 2018, 1:01 AM
Jonathan Pizarra
Jonathan Pizarra - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Anyone Have group of learning code?
1 Votes
Difference?
1 Votes
How to become a mentor?
1 Votes
Theres a lot of weird bugs in the Introduction to C++ course
2 Votes
Why do you start with something in HTML?
2 Votes
Hi I want to learn react.js and I don't have even idea of coding just newbie
0 Votes
How do we delete unwanted courses
0 Votes
Why does range(5) print 0-4 in python
0 Votes
Quiz module
0 Votes
How do I complete this code to make “game over” appear on the screen.
0 Votes