HTML コード:
<head id="Head1" runat="server">
    <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <title>Search</title>
</head>
<form id="form1" runat="server">
<div>
    <input type="text" id="userurlbox"/>
    <input type="button" value="Open" onclick="myFunction()"/>
</div>
</form>
脚本 :
<script type="text/javascript">
function myFunction() {
        var x = document.getElementById('userurlbox').value;
        if(x==0){           
            alert('Please enter a URL');
        }
        else {
            if (x.indexOf("http://")!=-1 || x.indexOf("https://") != -1 && x.indexOf(".edu") != -1) {
                window.open(x);
            }
            else if (x.indexOf("http://")==-1 || x.indexOf("https://") == -1 && x.indexOf(".edu") != -1) {
                if(x.indexOf("http://")==-1){
                window.open("http://" + x);
                }
            else {
                window.open("https://"+x);
                }
            }
            else {
                window.open("http://www.google.com/search?q=" + x);
            }
        }
    }
</script>
「www.badmintonchennai.com」として URL を入力すると、この「遅延読み込み」エラーが発生しました。
'www.karunya.edu' を試してみたところMicrosoft Run time error, $ undefined、IE9 では " " というエラーが表示されましたが、firefox ではこのエラーが発生しません。
また、うまく機能する他の多くのサイトも試しました。
これらの特定の Web サイトでエラーが発生したのはなぜですか? およびそれらを解決する方法。