+ 2

document.getElementByld("canvas1") means

22nd Jul 2019, 1:29 PM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
2 Respostas
+ 3
It is a JavaScript method that finds the bit of code that has that ID and returns it as an object. eg this will hide a div: HTML: <div id = "getMe"> </div> JAVASCRIPT: document.getElementById("getMe").style.hidden() See more here: https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
22nd Jul 2019, 1:43 PM
Rincewind
Rincewind - avatar
+ 2
ok And Thank you for help
22nd Jul 2019, 1:54 PM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar