•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,618 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,687 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1551 | Replies: 0
![]() |
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:
In the page header:...
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
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
Pubonwheels - Mobile Bar Services for the South West of England.
The Kings Head Inn - The Kings Head, Underhill, Coleford, Somerset, UK.
South West Ravers - Going out to all you jungle drum and bass ravers.
UFB Live Radio - Keep It Locked.
The Kings Head Inn - The Kings Head, Underhill, Coleford, Somerset, UK.
South West Ravers - Going out to all you jungle drum and bass ravers.
UFB Live Radio - Keep It Locked.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Javascript printing problems (JavaScript / DHTML / AJAX)
- Selectively Printing only Certain Divs (javascript/css question) (JavaScript / DHTML / AJAX)
- print without dialog box using javascript (JSP)
- Printing using Web Control Print button. (ASP.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: "<SCRIPT SRC>" javascript logon help
- Next Thread: Please help a newbie - Javascript basic


Linear Mode