bestätigen () 意既确认框
<! DocType html> <html> <kopf> <meta charset = "utf-8"> <title> bestätigen </title> </head> <body> <script> var con = bestätigen ("Studieren Sie JavaScript?"); Lanuages! ");} </script> </body> </html>Eingabeaufforderung 意既消息提示框
<! DocType html> <html> <kopf> <meta charset = "utf-8"> <title> bestätigen </title> </head> <body> <script> var pro = forderung ("Was ist Ihr Name?"); Document.write (pro); </script> </body> </html> </html>window.open (URI, Name, Attr)
<! DocType html> <html> <kopf> <meta charset = "utf-8"> <titels> bestätigen </title> </head> <body> <a href = "#"> klicken Sie auf mich </a> <Script> var link = document.getElementsByTagName ("a") [0]; link.onclick = function () {window.open (link.title, "blog", "width = 400px, height = 400px");} </script> </body> </html>window.close () 关闭窗口
以上所述是小编给大家介绍的 JavaScript 弹窗基础篇的相关内容 , 希望对大家有所帮助! 希望对大家有所帮助!