62,046
社区成员
发帖
与我相关
我的任务
分享
window.showModalDialog("Sub.aspx?tabname=" + dtext, document.getElementById('Text1'),"dialogWidth=500px;dialogHeight=400px");
function returnParentWindow()
{
window.dialogArguments.value = document.getElementById("TextBox1").value;
window.close();
}
<asp:Button runat="server" ID="btnSel" Text="搜索" OnClientClick="return openwin()" />
<input id="Text1" type="text" />
function openwin() {
var ddl = document.getElementById("ddlJDLX");
var dtext = ddl.options[ddl.selectedIndex].text;
window.showModalDialog("Sub.aspx?tabname=" + dtext, document.getElementById('Text1'),"dialogWidth=500px;dialogHeight=400px");
return false;
}
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input id="Button2" type="button" value="button" onclick="returnParentWindow()" />
function returnParentWindow() {
window.dialogArguments.value = document.getElementById("TextBox1").value;
window.close();
}
function aa(){
var url="Sub.aspx?table="document.getElementById("ddlJDLX").value;
var result=window.showModalDialog(Url,'tempdialog','dialogHeight:650px;dialogWidth:600px;status:no;');
}