I've been trying to get this piece of AJAX program to run but it won't work on Chrome or Safari. It works on Firefox, though.
function myFunction() {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
        document.getElementById("myID").innerHTML =this.responseText;
      }
  };
  xhttp.open("GET", "myPage.php", true);
  xhttp.send();
}
 
    