An often requested functionality is the Print link, with which users can print out a page. This can be very useful in framed sites when you don't want to explain to the user he has to click on the correct frame, then press "Print" etc.
As usual, you can try the script. I added my browser detect so you can keep track of which print was produced by which browser.
Since I'm going to rewrite this script later, I'll keep the explanation short.
This works in Netscape 4 and up, iCab, Hotjava and (on Windows) Explorer 5 and up. The other browsers can't handle this, except for Explorer 4 on Windows (and, it is rumoured, Explorer 3). Here we use the VBScript to create an Object that holds an instance of the browser and give it ID="WB"
document.write "<OBJECT ID=""WB"" WIDTH=0 HEIGHT=0 CLASSID=""CLSID:8856F961-340A-11D0-A96B-00C04FD705A2""> </OBJECT>"
and then we call the function WB.ExecWB(6,1) which means print.
I'm still not entirely sure how this works, more news later.
When printing other frames in Explorer it is necessary to put the focus on them first: