/DTD HTML 4.01 轉場//EN" "http://www.w3.org/TR/html4/loose.dtd">
父窗 window.onload=function(){
var btn=document.getElementById("btn");
btn.onclick=function(){
var obj={
test:"張三傳到子視窗",
win:window
};
var returnValue = window.showModalDialog("child.html",obj,"dialogLeft:100px;dialogTop:100pxdialogWidth:400px; :300px;ressized:yes");
if(returnValue != null){
document.getElementById("content").innerHTML = returnValue;
}
};
}
}
腳本>
頭>
身體>