Another post is written by others, I will refer to it, this is what I use.
Function pradvance ()
{
IF (ValidateSystem_SearchForm) {
Var objform = document.systemlog_searchform;
VAR newURL = "/ system / openaddialog.do";
WINDOW.SHOWMODALDIALOG (Newurl, Objform, "Dialogwidth: 350px; DialogHeight: 300px; Status: NO; Directories: NO; Scrollbars: no; resizable = no;");
Objform.action = "system / search.do";
Objform.submit ();
}
}
Here is the verification in the validation first, and then perform this JavaScript!
I use three parameters in this method, where newURL is the target page address (can be .do) for the opening of the window, Objform is the NAME of the parent form ActionForm, which is used to store the value in the pop-out window. The parameters in quotes are some properties of the pop-up window. Turn off the pop-up window for Submit ().