I am having a problem adding a js variable inside a html link where I believe I have the syntax wrong as it’s not adding the content of the variable to the link string.
Here is what I’m trying:
href="http://www.facebook.com/sharer.php?u='+url+'">
Where I’m I going wrong here?
That is not possible to do :).
You have to do it javascript all the way, like: