PDA

View Full Version : print(); not working on mac


mat
09-30-2002, 07:55 AM
i have a link with this

<a href="javascript:window.print();">print</a>

works fine on pc browsers i have tried but on mac ie 5.5 it does nothing :mad:

doesn't work on IE 4.0 (PC) either

Am i doing it the wrong way or something? a way to get around this perhaps :confused:


mat,

ez4ne12c
09-30-2002, 08:57 AM
I have used this
i dont have a mac to test it but it seems to work everywhere else

<script>
function Print() {
alert ("THUD.. another tree bites the dust!")
if (document.layers)
{
window.print();
}
else if (document.all)
{
WebBrowser1.ExecWB(6, 1)//use 6, 1 to prompt the print dialog or 6, 6 to omit it
;
WebBrowser1.outerHTML = "";
}
}
</script>
<object ID="WebBrowser1" WIDTH="0" HEIGHT="0"
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>

Hope it works 4 u
ez

mat
10-01-2002, 07:24 AM
well it's still not working :( but thanks for the suggestion anyway :)


mat,