[Javascript] pop up window works only once, but works again with reload

Andrea Poulimenos alps33 at yahoo.com
Thu Aug 2 12:36:24 CDT 2001


Hi :) First off, I am really new to javascript (3
days), but I'm not new to programming languages/logic.
(Thought I'd just warn you.)  ;)

Want:
little popup window, no options except to close(no
scrolling, etc.), presized, showing up at a certain
location on the screen

My solution:

<head>
.
.
.
function lil_window()
{lil_window=window.open("BlockBaseSR.htm", "plain",
"width=340,height=220,screenX=450,screenY=220,left=450,top=220");
}
</head>
<body>
.
.
.
<a href="BlockBaseSR.htm" onClick="lil_window();
return false;">Click here for System Requirements</a> 
      <noscript><a href="BlockBaseSR.htm"
target="_blank"> Click here for System
Requirements</a></noscript>
.
.
.
</body>

Problem:
Link works only once.  You need to refresh the page to
view the popup window again. I have no idea what's
going wrong.

What's your solution?

Thanks

-Andrea

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



More information about the Javascript mailing list