Chrome 不会加载简单的 JavaScript



我的javaScript在 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>

我在HTML文件中具有简单的JavaScript,但是Chrome不会读取它。在Inspector View中,它为我所有功能提供了参考器。请帮助。

你为什么要这么说,这些都是函数,这些功能都没有任何调用。调用功能,看看是否正确调用了

      checkinput();
      over1();
      /* the rest of them */

最新更新