-2
How to pass a variable to the script attribute, example:
<script>
token = "ablsicn05101dad10561" //exemplo. Esse token eu pego pela URL
</script>
<script
type="text/javascript"
src="http://.."
data-token=token>
</script>
The problem is that I cannot pass the value of the token variable, what happens is that data-token takes the variable name as if it were string, and not its value.