Redirect to a specified page using JavaScript
<p>Is there any way through which i can have a javascript on a page to redirect any url that's present on the page to some specific site.</p>

<p>For example on a HTML page i have say 10 urls present. Can i add a javascript to the HTML page  so that if anyone clicks on any url on that page, it gets redirected to the a specified page.</p>

<p>Thanks. </p>

<p>EDIT::</p>

<p>My scenario is i have some 13k links on a page and i do highlighting of terms on the page, even if any link is also clicked on the page, the word gets highlighted on that page. In order to do that i process each url and add some more info to it to go thought my server perl script which does the job of highlighting. But now due to large number of links on page, it takes time to process the page and page is rendered after a long time. So i want to have a javascript which can pass any link by adding info to my perl script on server.</p>

<p>I tried doing it server side my breaking page into pieces and processing in parallel but not much improvement.</p>

<p>Any other solution or suggestions are welcomed.
Appreciate your help in this regard.</p>
