adamthenewbie
04-20-2005, 03:51 PM
I have been using this code to do pop up windows. I noticed that if you use a pop up blocker the window will not open. Is there a better way that will still open with a pop up blocker?
<script language="JavaScript">
<!--
function test() {
windowprops = "top=150,left=150,scrollbars=yes, resizable=yes" + ",width=325 ,height=300";
window.open("test.php", "_blank", windowprops);
}
//-->
</script>
<a href = "#" onClick = "JavaScript: test();">Open Window</a>
<script language="JavaScript">
<!--
function test() {
windowprops = "top=150,left=150,scrollbars=yes, resizable=yes" + ",width=325 ,height=300";
window.open("test.php", "_blank", windowprops);
}
//-->
</script>
<a href = "#" onClick = "JavaScript: test();">Open Window</a>