同期通信 : Windows + IE6の場合

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>同期通信 : Windows + IE6の場合</title>
<script type="text/javascript"><!--
function loadTextFile()
{
httpObj = new ActiveXObject("Microsoft.XMLHTTP");
httpObj.open("GET","sample.txt",false);
httpObj.send(null);
alert(httpObj.responseText);
}
// --></script>
</head>
<body>
<h1>同期通信 : Windows + IE6の場合</h1>
<form>
<input type="button" value="ファイルを読み込む" onClick="loadTextFile()"><br>
</form>
</body>
</html>
・サンプルを実行する
実践Web2.0 Ajax プログラミング入門 説明などは本書を参考にしてください。