How to extract javascript contents
<p>As we extract html contents using </p>

<pre><code>alert(document.all[0].innerHTML);   
</code></pre>

<p>how can i extract javascript contents.</p>

<p>Anyone who knows the answer, please help me
Thanks in advance.</p>
