Professional Web Applications Themes

Print page button - Adobe Dreamweaver & Contribute

I put a print page link on a page with the following code: <td><a href="javascript :;" onClick="window.print(); return false">Print Page</a></td> Works fine in IE and NN on a PC and NN on a Mac. It won't work on IE on a Mac. How can I get it to work in IE? Thanks Mark...

  1. #1

    Default Print page button

    I put a print page link on a page with the following code:
    <td><a href="javascript:;" onClick="window.print(); return false">Print
    Page</a></td>

    Works fine in IE and NN on a PC and NN on a Mac. It won't work on IE on a
    Mac. How can I get it to work in IE?
    Thanks
    Mark

    Mark Morse Guest

  2. #2

    Default Re: Print page button

    It won't work on ie/macintosh.

    it just won't.

    so- either don't bother with the javascript Print button, because it's
    redundant (because every browser has a Print button, unless the toolbar has
    been hidden)

    or- ignore that it doesn't work. Unless you've hidden the browser's toolbar-
    the mac/ie people will be still able to print the page, if they want to.

    or- use a modified javascript that tests for ie/mac
    from Mick of mickweb-
    function to put in head-

    <script language="Javascript">
    function print_page(){
    if ( navigator.platform.toLowerCase().indexOf("mac") != -1 &&
    !window.netscape){
    alert("Press command + P");
    }else{ window.print();
    }
    }
    </script>

    link-
    <a href="javascriptrint_page();">Print</a>


    > It won't work on IE on a
    > Mac. How can I get it to work in IE?
    --
    Team Macromedia Volunteer for Dreamweaver
    Certified Dreamweaver MX Developer

    Alan Ames Guest

  3. #3

    Default Re: Print page button

    Thanks much for the info Alan. I didn't want the button but the client
    insists on it. You know how it goes, they think everyone is a dumb as they
    are.
    mark
    > It won't work on ie/macintosh.
    >
    > it just won't.
    >
    > so- either don't bother with the javascript Print button, because it's
    > redundant (because every browser has a Print button, unless the toolbar has
    > been hidden)
    >
    > or- ignore that it doesn't work. Unless you've hidden the browser's toolbar-
    > the mac/ie people will be still able to print the page, if they want to.
    >
    > or- use a modified javascript that tests for ie/mac
    > from Mick of mickweb-
    > function to put in head-
    >
    > <script language="Javascript">
    > function print_page(){
    > if ( navigator.platform.toLowerCase().indexOf("mac") != -1 &&
    > !window.netscape){
    > alert("Press command + P");
    > }else{ window.print();
    > }
    > }
    > </script>
    >
    > link-
    > <a href="javascriptrint_page();">Print</a>
    >
    >
    >
    >> It won't work on IE on a
    >> Mac. How can I get it to work in IE?
    >
    > --
    > Team Macromedia Volunteer for Dreamweaver
    > Certified Dreamweaver MX Developer
    >

    Mark Morse Guest

Similar Threads

  1. Print from a button in a PDF?
    By Dennis_lloyd@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 2
    Last Post: September 26th, 01:02 AM
  2. Making a 'Print Button'
    By Jules_Wilson@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 0
    Last Post: May 18th, 02:53 PM
  3. PDF Print button in a VB program
    By Dennis_Costello@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 0
    Last Post: April 21st, 12:27 PM
  4. Print a selection with a button?
    By DeanBarnes@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 0
    Last Post: April 3rd, 02:16 AM
  5. How do I create a 'print' button
    By michael - london webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 6
    Last Post: July 15th, 12:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139