Hi, experts,
I wrote a very simple perl cgi code with java script to popup a window.
During my test, I saw a new window poped up and disappeared right away. Could some tell me why it can not stay?
Thanks!
I wrote a very simple perl cgi code with java script to popup a window.
Code:
my $merchtype = &getMerchtype($orderid);
if($merchtype != 4)
{
# Need to popup
print <<END_OF_TEXT;
<script language="javascript">
newwindow = window.open("[URL unfurl="true"]http://www.xyz.com/popup.html","abc");[/URL]
</script>
END_OF_TEXT
}
During my test, I saw a new window poped up and disappeared right away. Could some tell me why it can not stay?
Thanks!