Internet Explorer のバージョンに関係なく、誰かがそのページにアクセスした場合に警告メッセージを表示したいと考えています。私が読んだすべての投稿はを使用すると言っていますが、それは私にとってはうまくいかないようです。
これが私のコードです:
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
.
.
.
<!--[if IE]>
<script>
$(document).ready(function(){
alert('This website is not compatible with internet explorer.
Please visit the page with any other browser.');
});
</script>
<![endif]-->
</head>
私は何か間違ったことをしていますか?