<html> | |
<head> | |
<title>Popup created using window.open</title> | |
<script> | |
function test() { | |
window.open("data:text/html,<title>Popup Success!</title>" + | |
"you should not see this message if popup blocker is enabled", | |
"mywindow", "menubar=1, resizable=1, width=350, height=250"); | |
window.parent.deleteframe(); | |
} | |
</script> | |
</head> | |
<body onload="test()"> | |
pop-up test page | |
</body> | |
</html> |