0
How does the html reference the JS?
I can't seem to use getContext with this app
2 odpowiedzi
0
You can find it by document.getElementById("id")
0
you have to wrap you javascript inside
window.onload = () =>{
*** your code **
}
in the javascript tab, to make sure the html is loaded first so that the javascript can find the DOM elements.