how to write javascript code in <a> tag
<p>I have a javascript variable soucreID and let us say</p>

<pre><code>sourceID = 10;
</code></pre>

<p>sourceID is dynamic value and always changes so i want to pass this to following  tag</p>

<pre><code>&lt;a href="edit-source.php?source=&lt;script&gt;document.write(sourceID)&lt;/script&gt;"&gt;Edit&lt;/a&gt;
</code></pre>

<p>But its not working, </p>

<p>Can any one tell me how can i write javascript value in <code>&lt;a href=""&gt;</code> tag.</p>

<p>Thanks in Advance.</p>
