Turning off Links?

I am opening a screen in a new window to print. This works great. Unfortunately the links are still live and causing problems with users clicking on them and causing errors.

My question is how can I turn off links with javascript?


Some options are

  1. change the display style of the links to ‘none’

  2. set the disabled property of the links to true.

why don’t you style the links in the opened window to blend in? What kind of errors do they cause/

Why are you using the 20th century method of having a separate version for print rather than just using a print stylesheet with the original page?

    var a=newwindow.document.links, L=a.length;
    for(var i=0;i<L;i++){