PHP not retaining Javascript changes
<p>I have this simple javascript function which changes the body zoom of the web page. The function runs properly when I am having it on a HTML page as a normal javascript. When I embed it in PHP, it is not retaining the body zoom change. The javascript embedded in PHP can be shown as follows:</p>

<pre><code>&lt;?php
?&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script language="javascript"&gt;
function zoomout()
{
document.body.style.zoom = screen.width/1024;
document.body.style.zoom = screen.height/1024;
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form name="test"&gt;
&lt;center&gt;
&lt;br&gt;
&lt;br&gt;
&lt;button onclick="zoomout()"&gt;1024&lt;/button&gt;
&lt;/form&gt;
&lt;/center&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>What am I doing wrong here. Thanks</p>
