fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function show_popup(){ var p=window.createPopup(); var pbody=p.document.body; pbody.style.backgroundColor="lime"; pbody.style.border="solid black 1px"; pbody.innerHTML="这是一个弹出!单击弹框外部关闭。"; p.show(150,150,200,50,document.body); } </script> </head> <body> <button onclick="show_popup()">显示弹出!</button> <p><b>注意:</b> createPopup()方法只适用在IE ! </p> </body> </html>
运行结果