PHP echo in Javascript
<p>I have this code:</p>

<pre><code> document.getElementById('root').style.left = '&lt;?php echo $page_position[$info["os"]][$info["browser"]][0]; ?&gt;';
 document.getElementById('root').style.top = '&lt;?php echo $page_position[$info["os"]][$info["browser"]][1]; ?&gt;';
</code></pre>

<p>Why won't this work like this?</p>

<p>Can anybody point me in the right direction?</p>

<p>EDIT:</p>

<pre><code>&lt;?php echo $page_position[$info["os"]][$info["browser"]][1]; ?&gt;
</code></pre>

<p>echoed "top:300px;"</p>

<p>Sorry guys, very stupid error of mine :/</p>
