[Javascript] Newbie Question - Passing Variables
Mark Christie
MChristie at avsgroup.com
Mon Mar 19 09:20:54 CST 2001
You're missing some quotes:
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbars=0,
scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0,
width=" + wth + ", height=" + hgt + "');");
Regards,
-Mark C.
-----Original Message-----
From: rchadwe1 at tampabay.rr.com [mailto:rchadwe1 at tampabay.rr.com]
Sent: Monday, March 19, 2001 9:11 AM
To: javascript at LaTech.edu
Subject: [Javascript] Newbie Question - Passing Variables
function popUp(URL,wth,hgt) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbars=0,
scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0,
width= + wth + , height= + hgt + ');");
I am trying to pop up a window using variables to determine window
size. Trying to create a generic pop up script. I can't get it to
recognize the wth and hgt variables. Can you help me? hep me hep me.
Thanks
Rob
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list