javascript - Is there a way to grab these values with php?
<p>I have this JS code which works by using the <code>onclick</code> method and opens an image in a new window which is the exact size of the image.</p>

<p>I adapted it from the BolGallery script. but the bolGallery script parses this in PHP and is able to get the the 'title','width' and 'height' values dynamically. and also the 'ImageFile' value. </p>

<p>My question is, is there a way to get these with php?</p>

<p>Im not very knowledgeable with JS </p>

<pre><code>function GalleryPopup(imageFile, width, height, title){

    var html = '&lt;title&gt;' + title + ' - Click to close &lt;/title&gt;&lt;body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onclick=\"javascript:window.close()\"&gt;&lt;img src=\"' + imageFile + '\" alt=\"Click to close\"&gt;&lt;/body&gt;';
    var popup = window.open(imageFile, '_blank', 'width=' + width+ ', height=' + height + ', status=no');
    popup.document.write(html);
    popup.focus();
}
</code></pre>

<p>alternatively, if you know of any other ways to achieve what i'm going for then feel free to tell me.</p>

<p>For Instance i dont know what to set the variable like:</p>

<pre><code>$imagetitle = 
</code></pre>

<p>Would that work?</p>

<p>i also have jQuery..</p>
