Printing Forms

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Mike Lind
    Staff Sergeant

    • Nov 2006
    • 45

    Printing Forms

    Instead of sending a completed form to my email, can I make it possible for the customer to print the form to mail it in to me? What I want on my website is basically the exact same thing as displayed at this web address:



    Thanks so much!
  • D'son
    Major General

    • Apr 2008
    • 2577

    #2
    Re: Printing Forms

    Insert this code in an HTML box and size it the way you want

    <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="Print this Page" name="Print" onClick="printit()"></form>');
    }
    </script>
    Reguards
    Ed
    www.dsondesigns.com
    www.marseillesyouthsports.com
    www.300hitter.com
    www.bigjk.net
    How to add JAlbum to your site

    Comment

    Working...
    X