js弹对话框


<script type="text/javascript">
function GetUser(TxtEmpID,TxtEmpName,url)
{
var properties = 'status:no;resizable:no;toolbar=no;menubar=no;location=no;scroll:no;dialogWidth:540px;dialogHeight:450px;'
var arg=window.showModalDialog(url,"",properties);
if(arg!=null)
{
document.getElementById(TxtEmpID).value=arg[0];
document.getElementById(TxtEmpName).value=arg[1];
}
}
</script>

 


<script language="javascript" type="text/javascript">
function Submit()
{
var arr=new Array();
arr[0]= document.getElementById('TxtEmpID').value
arr[1]= document.getElementById('TxtEmpCName').value
arr[2]= document.getElementById('TxtTitleID').value

window.returnValue=arr;
window.close();
}

</script>

 

 

 

posted @ 2011-11-14 22:49  cherry0917  阅读(120)  评论(0编辑  收藏  举报