passing a parameter from javascript to php
<p>Hello everybody I'm trying to pass a parameter to my controller.php from javascript, but it doesn't pass and gives me error of undefined URL. kindly help me i shall be thankful to you...Here is my code</p>

<pre><code>function JSfunction(assetid)
{
    window.location="controller.php?command=delete&amp;assetid=".assetid;
}
</code></pre>
