NuGG 15 Junior Poster

I want a ".doc" file to be printed when you click on a hyperlink, however so far all i have been able to print is the page on which the link is situated, and not the doc file.

Im using this script:

<!-- Begin
function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}
//  End -->

In the page header:...

<link rel=alternate media=print href="file.doc">

Now as far as im aware this should work in all browsers apart from netscape, however it doesnt work at all.

Does anyone know what i have done wrong here?

Thanks for your time,

NuGG

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.