x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>蜜蜂教程(mifengjc.com)</title>
6
<script>
7
function show_popup() {
8
var p = window.createPopup();
9
var pbody = p.document.body;
10
pbody.style.backgroundColor = "lime";
11
pbody.style.border = "solid black 1px";
12
pbody.innerHTML = "这是一个弹出!单击弹框外部关闭。";
13
p.show(150, 150, 200, 50, document.body);
14
}
15
</script>
16
</head>
17
<body>
18
19
<button onclick="show_popup()">显示弹出!</button>
20
<p><b>注意:</b> createPopup()方法只适用在IE ! </p>
21
22
</body>
23
</html>