How do i enable javascript autoload function : is there a way i can enhance my script to autoload instad of using button. Also is there a way i can include fade-in style sort of in this script.

    <script>
    var content = [
      "Headline",
      "Headline 1",
      "Headline 2",
      "Headline 3",
    ];
    var msgPtr = 0;
    var stopAction = null;
    
    function change() {
      var newMsg = content[msgPtr];
      document.getElementById('change').innerHTML = 'Breaking News: '+msgPtr+'<p>'+newMsg;
      msgPtr++;  msgPtr = (msgPtr % content.length);
    }
    
    function startFunction() { change();  stopAction = setInterval(change, 4000); }
    function stopFunction() { clearInterval(stopAction); }
    
    </script>

