Any type of javascript code I write and saves with no errors and when I open the html file which is linked to js and css (no jquery or other APIs). It works in all other online test environment (is it because i linked my js wrong). I did:
<script src="javascript.js">
I read alot of answers else where but all of them never worked.
Code in Brackets:
HTML
<div id="circle"></div>
CSS
#circle {
height: 100px;
width: 100px;
border-radius:100px;
background-color: red;
}
JS
document.getElementById("circle").onclick = function () {
document.getElementById("circle").style.display = "none";
};