How can I add a simple counter function in javascript jquery?
<p>I'm using Shadowbox a jquery overlay and I wanted to count how many people are actually using the overlay. Thus, I would need a function that would write a counter to a file or sending a query through a php api...</p>

<p>has to be a a php url api because I cant use php on the server where the overlay is.</p>

<p>So I need help with executing a javascript function on the overlay click, tips on how to make a counter query through GET method. </p>

<p>Thanks</p>

<pre><code>&lt;script type="text/javascript"&gt;
</code></pre>

<p>Shadowbox.init({
        handleOversize: "resize",
               overlayOpacity: 0.9</p>

<pre><code>           });
</code></pre>

<p></p>
