Make links in js file open in new window?

windows

Guest
I have a remote javascript file, eg:<br />
<br />
<!-- m --><a class="postlink" href="http://www.microsoft.com/sample.js">http://www.microsoft.com/sample.js</a><!-- m --><br />
<br />
I am linking to this file from my page, eg:<br />
<br />
<SCRIPT LANGUAGE="javascript" src=http://www.htmlforums.com/archive/index.php/"http://www.microsoft.com/sample.js"></SCRIPT><br />
<br />
<br />
Now this js file contains links, that open in the main window. I want these links to open in a new window, but of course, I can't edit <!-- m --><a class="postlink" href="http://www.microsoft.com/sample.js">http://www.microsoft.com/sample.js</a><!-- m --> to make them do that.<br />
<br />
So, is there anyway that I can make the links open in a new window??<!--content-->Try putting this in the head of the page:<br />
<br />
<base target="_blank"><br />
<br />
That should load any links in a new page as long as they do not have a local target specified.<!--content-->
 
Back
Top