I have written a little script that I need to pass a variable to can this be done, if so how? below is the script and the way I am calling it thanks.
btw, this is the first actual js script I have ever written if it is messy please forgive.
Here is how I am calling it.
window.open('<? echo "../merchants/".$sento; ?>','newwin' ,'toolbar,scrollbars,resizable, width=640 , height=480');
I am in fact trying to send a php variable by using echo, I have done this successfully in other js scripts that I have used.
echo "<tr><td><a href='$url' onClick='sendto()'>$value</a>-$max $z available</td></tr>";