Within a function I would like to use a variable in the setTimout string,
for example:
var jHello = 'Hello';
setTimeout("alert(" + jHello + ")", 1000);
This gives jHello undefined error.
What is the correct syntax?
Thanking you in anticipation.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com