Hi,
I apologise in advance but i'm very new to this.
I'm trying to join three variables to build a URL:
<html>
<head>
<script type="text/javascript">
var a = 'var b = '%PRODUCT_FIELD(MovieURL,1)%';
var c = '&test';
function url(a, b, c)
{
url = a+b+c
return url
}
</script>
</head><body><br><br>
<a href="url()">Click Here</a>
</body>
</html>
Am i right in creating a function to do this? i don't seem to be able to call it into the href?
Where am i going wrong?
Thanks in advance!!
I apologise in advance but i'm very new to this.
I'm trying to join three variables to build a URL:
<html>
<head>
<script type="text/javascript">
var a = 'var b = '%PRODUCT_FIELD(MovieURL,1)%';
var c = '&test';
function url(a, b, c)
{
url = a+b+c
return url
}
</script>
</head><body><br><br>
<a href="url()">Click Here</a>
</body>
</html>
Am i right in creating a function to do this? i don't seem to be able to call it into the href?
Where am i going wrong?
Thanks in advance!!