Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

How to test Website prototype with javascript? [closed]

$
0
0

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>

Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>