[thelist] indirect value for 'width' and 'height'

Candace Maynard Candace.Maynard at popart.com
Fri Jan 26 20:54:31 CST 2001


You have variable names inside of the quotes.  You need to pull them out
of the quotes:

width=' + value1 + ', height= ' + value2 + 'everything else'



-----Original Message-----
From: Cristian Secara [mailto:secarica at fx.ro]
Sent: Friday, January 26, 2001 5:22 PM
To: thelist at lists.evolt.org
Subject: [thelist] indirect value for 'width' and 'height'


Is it possible to assign indirect values for 'width' and 'height'
parameters of the window.open function:

<SCRIPT LANGUAGE="javascript">
var value1 = some_numeric_value;
var value2 = some_numeric_value;
function NewWindow(thatpage)
{
thing =
window.open(thatpage,"ShowWindow",'menubar=0,[...etc...],width=value1,he
ight=value2');
}
</SCRIPT>

My tests have failed. Am I missing something or is this not possible ?

Thank you.
Best wishes,
	Cristi




---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list