[Javascript] pop up window works only once, but works again w ith reload
Rees, Mark (TWIi London)
mrees at twii.net
Thu Aug 2 12:47:47 CDT 2001
Hello
when you say view the window again, do you mean have 2 popups with the same
content on the screen at the same time? If so then give them different
names, so instead of "plain", use "plain" + uniquevar
Try using a date (defined in milliseconds I think) for the uniquestring
maybe if there's nothing else to hand, something like:
var uniquevar=new Date();
If you haven't already seen it this is a good set of docs
http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm
Cheers
Mark
-----Original Message-----
From: Andrea Poulimenos [mailto:alps33 at yahoo.com]
Sent: 02 August 2001 18:36
To: javascript at LaTech.edu
Subject: [Javascript] pop up window works only once, but works again
with reload
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/
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list