|
|
|
|
|
| | |
| |
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
Re: Printing from an ASP page |
|
From: |
David Beal |
|
Date: |
7/3/2001 11:28:10 AM |
|
IP: |
64.162.117.152 |
Here's a javaScript routine that will cause the local printer to print the current page on newer browsers. Just call it with an onclick= statement from a button object or hyperlink.
<SCRIPT LANGUAGE="javascript">
function PrintPage() {
if (navigator.appName.indexOf("Microsoft")>=0 &&
navigator.appVersion.substring(22,23) == 4 ||
navigator.platform.substring(0,3) == "Mac") {
alert("Your current browser does not support this button. Please choose File/Print from your browser's menu.");
} else {
window.print();
}
}
</SCRIPT> |
Previous Message
Follow Up - Re: Printing from an ASP page - tom qin 7/26/2001 12:42:52 PM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|