Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why cannot my js popup stay?

Status
Not open for further replies.

cyan01

Programmer
Joined
Mar 13, 2002
Messages
143
Location
US
Hi, experts,

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!
 
Do you have a popup blocker on your computer?


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
I turned the popup blocker off and I do get other popups as expected. BTW, if the popup blocker was on, I would not be able to see the popup at first place. I just could not understand why it does not stay.
 
Is there any code in the popup page to close the window? Since you see it temporarily, I'd check there.

Lee
 
Lee,

You are right! That is the problem. I was not careful enough. :( Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top