Home > Web Front-end > JS Tutorial > JavaScript method to pop up a modal form and accept the value passed_javascript skills

JavaScript method to pop up a modal form and accept the value passed_javascript skills

WBOY
Release: 2016-05-16 15:15:51
Original
1215 people have browsed it

The example in this article describes the method of using JavaScript to pop up a modal form and accept the value. Share it with everyone for your reference, the details are as follows:

function shows(zwbh){
  var sUrl=window.showModalDialog('zlzx_edit.asp&#63;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;
  }
 }
}

Copy after login

Readers who are interested in more JavaScript-related content can check out the special topics on this site: "Summary of JavaScript animation special effects and techniques", "Summary of ajax operation skills in JavaScript" and " Summary of JavaScript mathematical operation usage

I hope this article will be helpful to everyone in JavaScript programming.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template