Click to See Complete Forum and Search --> : Problems creating Java Pop-Up's


hunifire
04-14-2005, 04:25 AM
Hi,
being totally new to Javascript I am having a few problems get some (generated) script for PU windows to work. I don't know if it me or if it is the script that is the reason for this error. Heres the script:

I'm putting this in the head of the window I have designated to be the PU:

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=340,height=520');");
}
// End -->
</script>


..and attaching this this to the relevant link in the 'from' html file:

<A HREF="javascriptopUp('http://www.plot9.com/01/AN.htm')">Open the Popup Window</A>


Can anybody tell me why this does'nt work?
..and possibly have any suggestions?

Andrew

buntine
04-14-2005, 05:44 AM
Wrong forum. This forum is for Java questions. You need to scroll down the list a bit until you see JavaScript. ;)