I want to have the href consist of a variable set in javascript, I also need the text that is displayed on the page to be a variable. In the example below I would like to have the string "<http://google.com>" be assigned to a variable, I also need to have "My Link Name" as a variable. I have looked at similar questions here but I don't see what addresses this particular situation. 

```
  <a href="http://google.com">Go Here Now</a><br>

```

In the example below I can create a variable called myLinkName and set it to the string "Go here now" however I don't know how to create a variable and set it to the value of the href e.g. "<http://google.com>"

```
<script type="text/javascript">
   var myLinkName = "Go Here Now";
</script>

<a href="http://google.com">
  <script type="text/javascript">
    document.write(myLinkName)
  </script></a>

```