• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1
Because it's set to called on onload, the definition needs to be in the head tag, so that when the html element is loaded, it already has the function defined.
1st Jan 2020, 4:21 AM
Rain
Rain - 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
How to show the images?
2 Votes
Как подготовиться к олимпиаде по информатике по Python?
0 Votes
Memorizing
0 Votes
How can I get help
0 Votes
Language confusion!
0 Votes
In this C code how that variable int i is accessing the marks element as I've declared it separately,
1 Votes
Games
0 Votes
Why do phone calls still convert better than forms in marketing?
1 Votes
Bachelor's c programming project for 1st semester
0 Votes
How to center a div in CSS?
0 Votes