Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8684273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:15:50+00:00 2026-06-12T22:15:50+00:00

I have made an invoice system for a website and i want to be

  • 0

I have made an invoice system for a website and i want to be able to print just the invoice (Non of the website graphics) so i set up a page that only has what i want to be printed and a button at the bottom of the page that says print now, it does what it says.

The problem is the printed page still has the print button on it obviously. I want to know if there is a way i can have a print button but be able to get rid of the button just for when it prints?

This is the code i am using the print the page:

<form>
    <input type="button" value=" Print this page" 
        onclick="window.print();return false;" />
</form>

So is there a way of doing this, a simple way?

Thanks for the time.

I just realised that i could put the “window.print();return false;” on the “onload” section in the body tag of my HTML, then i can delete the button and all is good.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:15:51+00:00Added an answer on June 12, 2026 at 10:15 pm

    You’ll need to use CSS to target print media:

    <link rel="stylesheet" href="print.css" type="text/css" media="print" />
    

    Add some way to target your print button

    <input type="button" value=" Print this page" class="button-print" onclick="window.print();return false;" />
    

    And in print.css hide your button

    .button-print {
        display:none;
    }
    

    You can do loads of other stuff to make your page more printable too. Here’s a good article about it

    Alternatively you can use a print CSS media query in your main CSS file, but if you want to support earlier versions of IE (http://caniuse.com/#search=media) you’re best going with the first approach.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a small program in C# that I want to run in
I have a model called Invoice .I have made necessary CRUD for Invoice model
I have made a jQuery toggle for a menu that I had in mind.
I have made a code that read data from flash Nand (without filesystem). fd
I have made a website using( Asp.net, c# ) and its content in English
I have made some code that makes powerpoint and excel work together. And I
I have made an normal form that you can enter a user´s fullname in
I have made an application that can render and save a given element. With
I have made the database using ASP.Net Configuration(aspnet_regsql.exe tool) . I want to use
I have made a player that plays mp3 and does the job very well

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.