Is there anyway to know the current page when I response the pageshow event in JQuery?
<p>Now I doing PhoneGap development.
I bind a pageshow event in JS, When my pageA jump to pageB,it will response the JS methods.But how can I get the current page in this event?
for sample:
<strong>pageA -> pageB</strong> , when the pageB displays and I want to know it is pageB and doing something about pageB.If it's pageC and I can doing something about pageC.</p>

<p>Can anyone help?</p>

<p>This is my code:</p>

<pre><code>  $("div").live("pageshow",function(e,ui){
           if(page == pageB)
                scroll1.refresh();
            else if(page == pageC)
                scroll2.refresh();

     }) 
</code></pre>
