syntax issue: printing a link with variables
<p>I want to print this</p>

<pre><code>&lt;link rel="canonical" href="http://nyc.mymusicwebsite.com/coolband/1222
"/&gt;
</code></pre>

<p>where</p>

<pre><code>var termsText = nyc
var deliurl = http://nyc.mymagazine.com/coolband/122
deliurl2[1] = mymagazine
deliurl[2] = .com/coolband/122
</code></pre>

<p>(deliurl is split at .) I have this code so far which almost works, This is the problem</p>

<pre><code>document.write('&lt;link rel=cononical"'+" ""href="http:"//"""+termsText+"."+deliurl2[1]+deliUrl[2]'"/&gt;');
</code></pre>

<p>my biggest problem is printing " for the href</p>
