I have a JavaScript file highlight.js
which highlights all strings within a given document class with a certain background color. eg.
$("div").highlight("the")
This highlights all occurrences of "the" within all divs with a yellow background.
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?