[thelist] javascript print function?
Craig Saila
crsaila at yahoo.ca
Tue May 7 13:35:59 CDT 2002
David Prowak wrote:
> Is there a cross-browser method in javascript to
> print?
window.print()
Supported by most Windows-based browsers. I usually do something like:
function printPage(){
if(window.print) window.print();
else{
if(agt.indexOf("mac") != -1)alert("To print this page press
Command-P.")
else alert("To print this page press Control-P.")
}
}
--
Cheers,
Craig Saila
------------------------------------------
craig at saila.com : http://www.saila.com/
------------------------------------------
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the thelist
mailing list