When I open my website with the Visual Studio Live Server my Javascript can´t take action. How can I solve this problem? Are there any environments or another solution with node.js to test my site while I code on it? It even does not work with the localhost.
My Code looks like this
<script>
function draw_circle() {
document.getElementByID("one").style.backgroundColor = "black";
}</script></head><body><div class='website' id='one'></div><button class='Circle' onclick="draw_circle"><img src="Images/Circle.png"></button></body>