Execute local JavaScript directly on webpage
<p>I have a JavaScript file <code>highlight.js</code> which highlights all strings within a given document class with a certain background color. eg.</p>

<pre><code>$("div").highlight("the")
</code></pre>

<p>This highlights all occurrences of "the" within all divs with a yellow background.</p>

<p>I am writing a web application; which needs to open an link to an HTML page and automatically execute this JavaScript on that webpage. How can this be done?</p>
