It would be better if you create an empty function in your JavaScript file. I would recommend you to do the same. So create an empty function in your JavaScript file called fNewPDFWindows. Also first check to see if the command getElementsByTagName is available. By doing this you will be assured that there is no JavaScript errors with the script.
Code:
function fNewPDFWindows ()
{
if (!document.getElementsByTagName) return false;
}
After doing the first step, you will have to create an HTML object collection. Now this object can be of any links but must be within the page. For doing the same, you can write down the following code :
Code:
var links = document.getElementsByTagName("a");
Bookmarks