I understand that there is differences in printing window in different browsers but I am having problems with IE on a Win2K machine and IE on Macs not being able to print screens. I haven't even tried to look into Netscape issues yet. I am using the following script that someone suggested I use but it also does not work. I am very frustrated with trying to do a seemingly easy task..... Is there a UNIVERSAL script that I can find that will work in all browsers and all platforms? Also where can I find more info on the topic? I "thought" that the principal idea of Java and HTML was that it was platform independent.....
java newbie...
TIA
Dan Rahenkamp
<SCRIPT Language="Javascript">
function printit(){__
if (window.print) {
____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);//Use a 1 vs. a 2 for a prompting dialog box____WebBrowser1.outerHTML = "";__
}
}
</script>
<SCRIPT Language="Javascript">__
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
____document.write('<form><input type=button value=http://www.webdeveloper.com/forum/archive/index.php/"Print this Page" name="Print" onClick="printit()"></form>');________
}
</script>
java newbie...
TIA
Dan Rahenkamp
<SCRIPT Language="Javascript">
function printit(){__
if (window.print) {
____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);//Use a 1 vs. a 2 for a prompting dialog box____WebBrowser1.outerHTML = "";__
}
}
</script>
<SCRIPT Language="Javascript">__
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
____document.write('<form><input type=button value=http://www.webdeveloper.com/forum/archive/index.php/"Print this Page" name="Print" onClick="printit()"></form>');________
}
</script>