<script>
var popup1 = window.createPopup();
var window2 = popup1.document.parentWindow;
var popup2 = window2.createPopup();
function zdzhuo() {
var pop1Body = popup1.document.body;
pop1Body.style.backgroundColor = "red";
pop1Body.style.border="solid black 1px";
pop1Body.innerHTML = "你有新消息";
popup1.show(20, 50, 300, 300, document.body);
var pop2Body = popup2.document.body;
pop2Body.style.backgroundColor = "blue";
popup2.show(400, 100, 300, 200, document.body);
}
</script>
<button οnclick="zdzhuo()">两个popup</button>
var popup1 = window.createPopup();
var window2 = popup1.document.parentWindow;
var popup2 = window2.createPopup();
function zdzhuo() {
var pop1Body = popup1.document.body;
pop1Body.style.backgroundColor = "red";
pop1Body.style.border="solid black 1px";
pop1Body.innerHTML = "你有新消息";
popup1.show(20, 50, 300, 300, document.body);
var pop2Body = popup2.document.body;
pop2Body.style.backgroundColor = "blue";
popup2.show(400, 100, 300, 200, document.body);
}
</script>
<button οnclick="zdzhuo()">两个popup</button>