Dear stackoverflowers,
I would lik to add an variable to the following js line:
setTimeout("parent.location.href = 'http://www.url.com/lists.php?listid=';",2000);
How do I do this? I can’t seem to get the ‘ right.
setTimeout("parent.location.href = 'http://www.url.com/lists.php?listid=' + variable;",2000);
It is always better to pass a function handler to
setTimeout(). Moreover, it will easily solve your problem with placing the quotes: