1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
5 <script type="text/javascript">
6 var thisurl = 'http://www.m17n.org/common/mim-js/loadxml.html';
9 var href = window.location.href;
10 alert ('loadxml called: ' + href);
11 var xmlfile = href.substring (thisurl.length + 1);
12 alert ('loading ' + xmlfile);
13 var obj = new XMLHttpRequest ();
14 obj.open ('GET', xmlfile, false);
16 window.parent.postMessage (obj.responseText, '*');
17 alert ('message sent to parent: ' + obj.responseText.length + 'chars');
23 <body onload="loadxml ()">