jeudi 16 juin 2016

Chrome Won't Load Simple JavaScript

My JavaScript Inside The Head Tag:

    <script type="text/javascript">
      function over1() {
  var img1 = document.getElementById("1").src;
  document.getElementById("big").src = img1;
}

function out() {
  document.getElementById("big").src = "http://icons.iconarchive.com/icons/paomedia/small-n-flat/1024/shop-icon.png";
}

function london() {
  var city = document.getElementById("city").value;
  var check = city.toLowerCase();
  var province = document.getElementById("province").value;

  if (check == "london" && province == "ON") {
    alert("Visit our company travel store at Masonville Mall!");
  }
}

function  checkinput()  {
  var email = document.contest.email.value;
  var emailcheck = email.search("@");

  if  (!document.contest.name.value)  {
    alert("Enter a name!")

  } else {

      alert("Thank You " + document.contest.name.value + " " + document.contest.lastname.value + " For Entering The Contest!")
      window.open(calculator.html,'_blank');
  }
}
  </script>

I Have The Simple JavaScript Inside The HTML File, But Chrome Won't Read It. In Inspector View, It Get ReferenceErrors For All My Functions. Please Help.

Aucun commentaire:

Enregistrer un commentaire