How to call a javascript function and get the html code it returns ,Java,Android
<p>There is a HTML page that has a javascript function in it.This function returns a frame with a random picture.
Is there a way to call this function and get the HTML code that is hidding? (So i get the image)</p>

<p>Exactly i want to get a html stream from <a href="http://partner.googleadservices.com/gampad/google_service.js" rel="nofollow">GoogleServices.js</a>
by calling:</p>

<pre><code>GS_googleAddAdSenseService("ca-pub-YOU
RPUBIDHERE");
  GS_googleEnableAllServices();
  GA_googleAddSlot("ca-pub-YOURPUBIDHERE", "ADSLOT_NAME_HERE");
  GA_googleFetchAds();
GA_googleFillSlot("ADSLOT_NAME_HERE");
</code></pre>
