#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    1
    Rep Power
    0
    Hi everybody.
    Why this script works fine with windows+ie, win+ne, maintosh+ne but not with mac+ie?

    thanx in advance

    <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="Clicca qui per stampare questa pagina" border=0></a>');
    }
    </script>


    </font>
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    19
    Rep Power
    0
    That may just be a Windows/IE proprietary object you are using.

IMN logo majestic logo threadwatch logo seochat tools logo