تأكيد () 意既确认框
<! doctype html> <html> <head> <meta charset = "utf-8"> <title> تأكيد </title> </head> <body> <script> var con = تأكيد ("هل تحب دراسة javaScript؟") ؛ if (con) {document.write ("أنا أحب javaScript!") Lanuages! ") ؛} </script> </body> </html>موجه 意既消息提示框
<! doctype html> <html> <head> <meta charset = "utf-8"> <title> تأكيد </title> </head> <body> <script> var pro = proft ("ما هو اسمك؟") ؛ document.write (pro) ؛window.open (uri ، الاسم ، attr)
<! doctype html> <html> <head> <meta charset = "utf-8"> <title> تأكيد </title> </head> <body> <a href = "#" link = document.getElementsByTagName ("A") [0] ؛ link.onclick = function () {window.open (link.title ، "blog" ، "width = 400px ، height = 400px") ؛} </script> </body> </html>window.close () 关闭窗口
以上所述是小编给大家介绍的 JavaScript 弹窗基础篇的相关内容 , 希望对大家有所帮助!