DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Javascript printing (http://www.daniweb.com/forums/thread58972.html)

NuGG Oct 23rd, 2006 11:38 am
Javascript printing
 
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


All times are GMT -4. The time now is 10:06 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC