|
-
Feb 5th, 2001, 10:46 AM
#1
Thread Starter
New Member
I use the following script to print my html page. It's working fine with win+IE, win+NE, Mac+NE but it doesn't work with mac+IE (5).
Someone can tell me what's wrong?
Maybe mac can't call execwb method??
Thanx in advance
Here's the script:
<SCRIPT Language="Javascript">
function printit(){
if (NS) {
window.print() ;
} else {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, 2);
WebBrowser1.outerHTML = "";
}
}
</script>
<SCRIPT Language="Javascript">
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
document.write('<a href="#" onClick="printit()"><img src="stampa.gif" alt="Click here to print this page" border=0></a>');
}
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|