I tried using JavaScript to turn off the effect of a <BR/> tag when my page loaded, but for some reason, it isn’t working. I feel like I made some sort of error, here’s my html:
<HTML>
<HEAD>
<SCRIPT type="text/javascript">
var brTag = document.getElementById('newline');
brTag.style.display = 'none';
</SCRIPT>
</HEAD>
<BODY>
Line 1 <BR id = "newline" />
Line 2
</BODY>
</HTML>
You’re referencing
newlinebefore it is declared. Try running the script after creating the element (i.e., either later in the file, or inside a function that is called later in the file)