My current code is:
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>App1</title>
    <link href="css/default.css" rel="stylesheet" />
</head>
<body>
    <p id="test">Content goes here!</p>
    <button onclick="myFunction()">Try it</button>
    <script>  
        function myFunction() {
            document.getElementById("test").innerHTML = "Working";
        }
    </script>
</body>
</html>
When I debug on Visual Studio 2017 the html works fine. Picture of code execution
However, clicking the button does nothing. No error messages, just nothing happens. If I copy and paste the code into a text document, format it as an html and test that in Chrome, everything works fine. Any idea why this happens?
Edit: It was made as a Blank JavaScript App if that changes anything
 
     
    