showModalDialog--------------------------------------------------------------------------------DescriptionCreates a dialog box and displays in it the HTML document given by URL. The dialog box is a special window that is modal, meaning it retains the input focus until the user closes it. Syntax
variant = object.showModalDialog(sURL [, vArguments [, sFeatures]])Parameter Description
sURL String specifying the URL of the document to load and display. While an empty string is accepted (""), it should be noted that this is useless since once a modal dialog has been opened, it cannot be accessed by the page that opened it.
vArguments Optional. Variant specifying the arguments to use when displaying the document. This parameter can be used to pass a value of any type including an array of values. The dialog can extract the values passed by the caller from the dialogArguments property of the window object.
sFeatures Optional. String specifying the window ornaments for the dialog box. It can be a combination of the following values. Syntax Description
dialogWidth:number Sets the width of the dialog window.
dialogHeight:number Sets the height of the dialog window.
dialogTop:number Sets the top position of the dialog window relative to the upper-left corner of the desktop.
dialogLeft:number Sets the left position of the dialog window relative to the upper-left corner of the desktop.
center:{yes | no | 1 | 0 } Specifies whether to center the dialog window within the desktop. Default is yes.
Return ValueReturns a number, string, or other value. This is equal to the value of the returnValue property as set by the document given by URL. ResThe default font settings should be set in the same way CSS attributes are set; for example, "font:3;font-size:4". To define multiple font values, use multiple font attributes. When dialogLeft and/or dialogTop is specified, the feature center is overridden, even though the default for center is yes.Applies Towindow
variant = object.showModalDialog(sURL [, vArguments [, sFeatures]])Parameter Description
sURL String specifying the URL of the document to load and display. While an empty string is accepted (""), it should be noted that this is useless since once a modal dialog has been opened, it cannot be accessed by the page that opened it.
vArguments Optional. Variant specifying the arguments to use when displaying the document. This parameter can be used to pass a value of any type including an array of values. The dialog can extract the values passed by the caller from the dialogArguments property of the window object.
sFeatures Optional. String specifying the window ornaments for the dialog box. It can be a combination of the following values. Syntax Description
dialogWidth:number Sets the width of the dialog window.
dialogHeight:number Sets the height of the dialog window.
dialogTop:number Sets the top position of the dialog window relative to the upper-left corner of the desktop.
dialogLeft:number Sets the left position of the dialog window relative to the upper-left corner of the desktop.
center:{yes | no | 1 | 0 } Specifies whether to center the dialog window within the desktop. Default is yes.
Return ValueReturns a number, string, or other value. This is equal to the value of the returnValue property as set by the document given by URL. ResThe default font settings should be set in the same way CSS attributes are set; for example, "font:3;font-size:4". To define multiple font values, use multiple font attributes. When dialogLeft and/or dialogTop is specified, the feature center is overridden, even though the default for center is yes.Applies Towindow
解决方案 »
- js如何获得table的值
- js编码问题如何将%b1%b1%be%a9转化为北京
- 怎么禁止checkbox选项框为只读,类似input type=text readonly的效果。readonly对checkbox不起作用。使用disabled会使该选项值也无效
- 怎么实现像msn spaces里随意拖动自动调整大小的功能
- 如何使用JS动态生成URL?
- 如果获取iframe的src属性所指向的页面中的html元素的引用?
- 始终想不通这个结果啊
- 求js做的日期时间控件(精确到秒)
- 怎样在网页中应用javascript
- 找个高手帮忙看下 zTree 问题 着急~
- 请问如何在页面加载的时候,如何限制用户的输入?
- form刷新的问题
<form name="form1" method="post" action="old">
不明白你什么意思。提交一下就可以了。
你什么意思呀??
{
var strPathName=window.location.pathname;
var inParameter="NULL"+","+"NULL"+","+GetSelectValue(document.forms[0].ModelID);
var outResult=showModalDialog(strPathName.substring(0,(strPathName.lastIndexOf('/')+1))+"Define_Node.jsp?Node=NULL&Action=NULL&ModelID="+GetSelectValue(document.forms[0].ModelID),inParameter,"dialogWidth:12;dialogHeight:6;dialogTop:400;dialogLeft:500;status:no;");
if(outResult=="False")
{
}
else
{
var outParameter=outResult.split(",");
var strOutNode=outParameter[0];
var strOutAction=outParameter[1];
var strOutNode_,strOutAction_;
strOutNode_=strOutNode.split("_");
strOutAction_=strOutAction.split("_");
document.forms[0].ListNode.length=document.forms[0].ListNode.length+1;
document.forms[0].ListAction.length=document.forms[0].ListAction.length+1;
var iLen=document.forms[0].ListNode.length;
document.forms[0].ListNode.options[iLen-1].value=strOutNode_[0];
document.forms[0].ListNode.options[iLen-1].text=strOutNode_[1];
document.forms[0].ListAction.options[iLen-1].value=strOutAction_[0];
document.forms[0].ListAction.options[iLen-1].text=strOutAction_[1];
}
}