I won't say much nonsense, just post the code.
The specific code is as follows:
<script>function openWindow(){var my=confirm("Do you want to open the window?")if(my==true){var url=prompt("Can determine the open URL through the input dialog box","http://www.imooc.com")if(url!=null){window.open('http://www.refw.org.cn','_blank','width=300,height=300,scrollbars=no,menubar=no')}else{alert('not open');} /*if nested*/}else{alert("88")}}</script> <body><input type="button" onclick="openWindow()" value="click"></body>The code is just a few simple sentences. If you have any questions, please leave me a message. The editor will reply to you in time!