Hi
I'm a total Javascript novice & am having a lot of issues trying top get a variable that I have have populated passed as part of a link.
The header of the page contains the following script which works fine ....
<script language="javascript">
var sid = prompt("Please enter the tracking id that you have been issued with. Without this no payments will be made", "");
</script>
But then when I try to use the 'sid' variable in the link below, it doesn't see to get passed. Clearly my syntax is wrong but all I've done is replace a working static value of QQQ with "+sid+" (including the quotes).
<script type="text/javascript" language="javascript" src="
What am I doing wrong ?
Thanks
Steve
I'm a total Javascript novice & am having a lot of issues trying top get a variable that I have have populated passed as part of a link.
The header of the page contains the following script which works fine ....
<script language="javascript">
var sid = prompt("Please enter the tracking id that you have been issued with. Without this no payments will be made", "");
</script>
But then when I try to use the 'sid' variable in the link below, it doesn't see to get passed. Clearly my syntax is wrong but all I've done is replace a working static value of QQQ with "+sid+" (including the quotes).
<script type="text/javascript" language="javascript" src="
What am I doing wrong ?
Thanks
Steve