想在HTML页面弹出对话框,使用下面的代码就ok 123 <html> <body onload="javascript:window.alert('确定吗?')"></body> </html> 如果要把提示分为两行居中显示代码如下: 1234567 <html> <body> <script language="javascript"> alert("弹出提示上\n弹出提示下") </script> </body> </html> 原创内容©ImYrS 转载请表明出处:ImYrS - I'm Your's 原链接:https://imyrs.cn/28.html 参考链接: https://zhidao.baidu.com/question/480557235.html Tags:HTML对话框