I am attempting to insert a url into the data-url using javascript, and I am getting nowhere since I have no clue what I am supposed to do
Here is my html example
<a class="button" data-url="http://www.google.com" href="#"></a>
all I have at the moment is within my javascript the following:
var link = {
url: 'http:www.google.com'
}
but now I don't know how to get link to be pushed inside the data-url="".
All help is much appreciated.