window.showModalDialog("a.htm",object);a.htm:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<link rel="stylesheet" type="text/css" href="main.css">
<title></title>
</head>
<body onLoad="msgwrite()">
<SCRIPT language="JavaScript" type="text/javascript">
<!--
function msgwrite(){
var obj = window.dialogArguments;
var title=obj.Property3;
var title1=obj.Property1;
var title2=obj.Property2;
var arrayName;
var arraymessage;
document.write("<html>");
document.write("<title>"+title+"</title>");
document.write("</head>");
document.write("<body>");
document.write("<table border=\"1\">");
document.write("<tr><td>項目</td><td>メッセージ</td></tr>");
for (i=0;i<title1.length;i++) {
document.write("<tr>");
document.write("<td>");
document.write(title1[i]);
document.write("</td>");
document.write("<td>");
document.write(title2[i]);
document.write("</td>");
document.write("</tr>");
}
document.write("</table>");
document.write("</body>");
document.write("</html>"); }
// -->
</SCRIPT> </body>
</html>
可能是我表述有误,
我的意思是打开一个空白窗口,就是说,不能存在你说的那个a.htm。就象
var win=window.open("about blank");
win.document.write('');
一样,但我想用模态窗口,
http://community.csdn.net/Expert/topic/4543/4543452.xml?temp=5.997866E-02