confirmar () 意既确认框
<! Doctype html> <html> <adheh> <meta charset = "utf-8"> <title> confirmar </title> </head> <body> <script> var con = confirmar ("¿le gusta estudiar javascript?"); If (con) {document.write ("I love javaScript!");} Else {Document.write ("I Love Other (I Love Other (I Love Other (I Love Ot Lanuages! ");} </script> </body> </html>aviso 意既消息提示框
<! Doctype html> <html> <head> <meta charset = "utf-8"> <title> confirmar </title> </head> <body> <script> var pro = aprop.
Window.open (uri, nombre, attr)
<! Doctype html> <html> <head> <meta charset = "utf-8"> <title> confirmar </title> </head> <body> <a href = "#"> haga clic en mí </a> <script> var link = document.getElementsBytagName ("A") [0]; link.onClick = function () {window.open (link.title, "blog", "width = 400px, hight = 400px");} </script> </body> </html>Window.Close () 关闭窗口
以上所述是小编给大家介绍的 JavaScript 弹窗基础篇的相关内容 希望对大家有所帮助! 希望对大家有所帮助!