Add "<base target=" _self "/>" to the page in the dialog box to be displayed Handling problems with postback pop-up new page
Main function Description:
Click a button in the page to pop a page window, select the pop-up page window value, close the window, the interface to get the value
Copy Code code as follows:
//b Interface Select value processing
<input type= "button" id= "Btnclose" value= "Confirm and close Window" O Nclick= "Closewin ()"/>
Function Closewin () {
//To upload the value of the B interface to the A interface
Window.returnvalue = Totalcou nt
Window.close ();
}
The//a interface needs to select a value
function showUnitDialog2 (id) {
var RDM = Math.random ();
//Open B interface
var result = window.showModalDialog ("goodsstocketacke.aspx?id=" + ID + "&t=" + RDM, "Counting Details", "D Ialogwidth=800px;dialogheight=500px;center=1 ");
//Accept the value of the B interface
if (result) {
$ (' #txtRealCount '). Val (result);
$ ("#txtRealCount"). attr ("ReadOnly", "true");
$ ("#tbUnit tr:eq (1) td:eq (3)"). HTML (result);
Initbutton ();
}
}