I have an html page describing an event we will be holding, “description.html”. I have a Word document (which I can convert to PDF or html format) which is the registration form for the event.
I would like to create a link at the bottom of “description.html” that says, “Click here to print the registration form.” I want the viewer to be able to click on the link and have the registration form automatically go to the printer, without having to open it first.
I found a javascript that will print a different page than the current page, but only if you go to FILE, PRINT in the browser. I would really like to do it with a link or a button.
I was told you can accomplish this with the use of framesets, but I couldn’t get it to work right.
I know that if u put a link on description.html to the form ure placing there as well it will ask u to save or open it. from either or both u can then open and print the page
as for making it go straight to the printer i’m not sure maybe IM brandon and maybe he can assist
You want this button to automatically send the page to the printer without loading on the screen? As far as I know, that’s not possible. And I wouldn’t really recommend it if it is. It’s nice to see what you’re printing before-hand to see what it is, how long it is, etc. I’d either go with a PDF or an HTML file for an online doc. I’m a bit opposed to using the MS Word format on a website since not everyone has Word and the formating of the page is more like to be off than with HTML or a PDF.
In the current document, in the HEAD tag, type the following code (where href= refers to the different page you want to print without loading to the screen first):