I have declared “branch” as a variable in the head. Its a JavaScript function that pulls down part of the url string that the function then declares as “branch”. i.e.
pieshop.co.uk/bristol/buy
“branch” = bristol
the above works fine,
When a user clicks a button I want it to send some fixed figures and the variable “branch”, the figures are sending correctly and so is the phrase “branch”, but its not changing to the variable I have declared.
I have currently put this together,
<a href='http://www.google.com' onClick='function("1256", "468", "branch" );' target="_blank">send data</a>
How do i get this to pull in the “branch variable?”
assuming you have sth. like this
you can: