Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2002
    Location
    Manchester, England
    Posts
    118
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Print Page help please

    I have an html page with a text link PRINT THIS PAGE to print part of the page.
    I have used the following script

    <a href="javascript:void(printSpecial())">PRINT THIS FORM</a>

    The problem is that when the link is clicked on it opens an about: blank page before printing.

    Could you please tell me why this page is opening and what I can do to stop it and just print the page I want.

    All help much appreciated

  • #2
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,071
    Thanks
    4
    Thanked 8 Times in 8 Posts
    change it to an onClick event like so

    <a href="javascript:void(0)" onClick="printSpecial()">PRINT THIS FORM</a>


  •  

    Posting Permissions

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