printable form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jocostillie
    Corporal

    • Oct 2008
    • 15

    printable form

    Can someone help find info. on how to make a link to a printable form? Thanks Josie
  • D'son
    Major General

    • Apr 2008
    • 2577

    #2
    Re: printable form

    Pop this code into an html box where you want the button to show
    <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

    • jocostillie
      Corporal

      • Oct 2008
      • 15

      #3
      Re: printable form

      Thanks for the script. Only I don't know where to put it.(before tag,inside tag,or after tag)? Am I even in the right area? I have another question about page naming. I'm redoing my webpages. I've got one page named samples. Now to show the samples,I've got two other pages (one for each sample) I want them to linkup with hyperlinks. So with my sample page it is www.mywedsite.com/samples.html. Would the hyperlink pages be www.mywebsite.com/ourgang/samples.com www.mywebsite.com/ournewfamily/samples.html Thank You Josie

      Comment

      Working...
      X