I was looking at another question and saw that they had been told, when their Javascript was not working, to put a function that started on loading of the page.
I was trying to use this code:(well, not exactly this code, but something like it)
<!DOCTYPE html>
<html>
    <head>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
        <script type="text/javascript" charset="utf-8">
function doThisWhenLoaded(){
    var code = document.getElementsByTagName("body");
    code.append("<p>Yes it did.</p>");
}
        </script>
    </head>
    <body onload="doThisWhenLoaded">
        <h1 style="font-family:sans-serif;">Did it work?</h1>
    </body>
</html>And nothing happened. All that it did was show the h1 code that I put in there.
 
     
     
    