canvas | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

canvas

Hello everyone, can someone tell me about <canvas> . I have the code - < input type = "range" id = "rangedot" min = " 2 "max =" 10 " value = "4"> . How can I access JS?

22nd Mar 2021, 6:13 PM
LegendaryTM
LegendaryTM - avatar
1 Answer
+ 2
what's the link between <canvas> and access to <input type="range"> with JS? anyway, you have just started the javascript course... you should complete it to learn things as DOM, how to get a reference to an element through it ^^ by the way, without detailing, you could do: var rangedot = document.getElementById("rangedot"); then you could access to its properties (the element/tag attributes) through it... https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/range https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement
22nd Mar 2021, 6:37 PM
visph
visph - avatar