This article describes the solution to JS's return value of undefined in Chrome browser. Share it for your reference, as follows:
Main page:
<script type="text/javascript">function SelectGroupCust() { var temp = window.showModalDialog("Default2.aspx?xx=" + Date(), "", "dialogWidth=800px;dialogHeight=600px;help=no;center=yes;"); //for chrome if (temp = undefined) { temp = window.returnValue; } alert(temp); return true;}</script>Detailed page:
<script language="javascript" type="text/javascript">function ReturnAddresssee() { if (window.opener != undefined) { window.opener.returnValue = "1"; } else { window.returnValue = "2"; } window.close();}</script>For more information about JavaScript related content, please check out the topics of this site: "Summary of JavaScript Errors and Debugging Skills", "Summary of JavaScript Mathematical Operation Usage", "Summary of JSON Operation Skills in JavaScript", "Summary of JavaScript Switching Special Effects and Skills", "Summary of JavaScript Search Algorithm Skills", "Summary of JavaScript Animation Special Effects and Skills", "Summary of JavaScript Data Structures and Algorithm Skills" and "Summary of JavaScript Traversal Algorithm and Skills"
I hope this article will be helpful to everyone's JavaScript programming.