確認()意既确认框
<!doctype html> <html> <head> <meta charset = "utf-8"> <title> confirm </itfe> </head> <body> <script> var con = confien( "javascript?"); if(con){document.write( "i love javas!"); lanuages! ");} </script> </body> </html>プロンプト意既消息提示框
<!doctype html> <html> <head> <meta charset = "utf-8"> <title> confirm </title> </head> <body> <script> var pro = prompt( "your name?
window.open(uri、name、attr)
<!doctype html> <html> <head> <meta charset = "utf-8"> <title> confism </title> </head> <body> < link = document.getElementsByTagname( "a")[0]; link.onclick = function(){window.open(link.title、 "blog"、 "width = 400px、height = 400px");} </scrip> </body> </html>window.close()关闭窗口
以上所述是小编给大家介绍的javascript弹窗基础篇的相关内容、希望对大家有所帮助!