JavaScript implements the method of popping modal forms and accepting value passing

  • 2020-12-13 18:51:11
  • OfStack

An example of JavaScript shows how to pop up modal forms and accept values. To share for your reference, the details are as follows:


function shows(zwbh){
  var sUrl=window.showModalDialog('zlzx_edit.asp?xmbid=<%=Request("xmbid")%>&zlbh='+zwbh+'&typeid=<%=typeid%>','window','dialogWidth=500px;dialogHeight=240px;status=no;'); 
  if(document.selection){
  if (sUrl == "123")
  {
  }
  else
  {
    location.href = location.href;
  }
 }
}

For more information about JavaScript, please refer to: Summary of JavaScript Animation Special Effects and Techniques, Summary of ajax Operation Techniques in JavaScript and Summary of JavaScript Mathematical Operation Usage.

I hope this article has been helpful in JavaScript programming.


Related articles: