0
This works in Chrome, but not in solo learn. Any help would be appreciated.
4 Answers
+ 5
How about place your script inside <script> which is inside <body>?
+ 1
What happens is that when the script runs, the html isn't loaded yet, so you gotta put all your code EXCEPT functions inside a function that is called then the document loads, example:
// here your functions and vars
onload = function() {
// your code
// vars related to the document
}
// here your functions and vars
0
Thanks for the help guys, first time posting code to solo learn :)