confirm () 意既确认框
<! Doctype html> <html> <head> <meta charset = "utf-8"> <title> confirm </title> </head> <body> <cript> var con LANUAGES! ");} </SCRIPT> </body> </html>
Prompt 意既消息提示框
<! Doctype html> <html> <head> <meta charset = "utf-8"> <titter> confirm </title> </head> <body> <cript> var pro = prompt ("Qual é o seu nome?");window.open (Uri, nome, attr)
<! Doctype html> <html> <head> <meta charset = "utf-8"> <title> confirm </title> </head> <body> <a href = "#"> clique em mim </a> <cript> var link = document.getElementsByTagName ("a") [0]; link.onclick = function () {window.open (link.title, "blog", "width = 400px, altura = 400px");window.close () 关闭窗口
以上所述是小编给大家介绍的 JavaScript 弹窗基础篇的相关内容 , 希望对大家有所帮助!