How to pass string variable to javascript function using php
<p>I have a problem about to passing a string parameter to java-script function using PHP. I have an anchor tag as View Live. Here $website contains web URL. On click of link I am opening a popup window. and function to open popup I have a function popup() in javascript. When I click on link I getting error of undefined variable. Can any one help me to solve this problem?</p>

<p>anchor tag is mention in question and javascript function is as follows...</p>

<pre><code>function RankPopup(website)
{
        var left = (screen.width/5);
        var top = (screen.height/5);
        newwindow=window.open('abc.php?web='+website,'name',"height=300, width=850,toolbar=no,scrollbars=1,menubar=no,top="+top+",left="+left);
        if (window.focus) {newwindow.focus()}
        return false;
    }
</code></pre>

<p>Thank You In advance</p>
