I need to pass a url to addthis, and this is the default code
<div class="addthis_toolbox addthis_default_style" addthis:url="http://www.google.com" >
I need to pass the url to addthis with a javascript variable, I need it something like
<script type="text/javascript">
var currentUrl = 'http://www.google.com';
</script>
<div class="addthis_toolbox addthis_default_style" addthis:url=currentUrl >
Do you know the syntax to add this javascript variable ?