it技术博客

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

function showMyModalDialog(url, width, height)
{
  showModalDialog(url, ", 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;center:yes;status:no;scroll:no;help:no');
}

function showMyModelessDialog(url, width, height)
{
  showModelessDialog(url, ", 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;center:yes;status:no;scroll:no;help:no');
}

返回一个值:

var   strr=showModalDialog('hh.asp',0,"dialogWidth:300px;dialogHeight:160px;status:no");   

hh.asp: 

window.returnValue=document.all.name.value;

返回数组: var s=Array(4);或 var s=[1,2,3]; 或 var s=[[1,2],[3,4]];window.returnValue=s;window.close();    
 得到:strr[][]

posted on 2011-11-21 16:04  ie技术博客  阅读(2185)  评论(0)    收藏  举报