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

  • Home
  • SEARCH
  • 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 8375963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:18:35+00:00 2026-06-09T15:18:35+00:00

One of mine application having custom button to print the customer invoice bill. The

  • 0

One of mine application having custom button to print the customer invoice bill. The browser also having default print option (Cntrl + P) to print the window content.

Initially, I resolved this problem by adding:

$(document).ready(function(){
    $(document).keydown(function(event) {
        if (event.ctrlKey==true && (event.which == '80') { //cntrl + p
            event.preventDefault();
        }
    });
 });

But I feel, this is not feasible solution for this. because am here binding this (keydown) event on document. so on each and every key press on application it firing this (keydown) event, and so which is very critical as per as the performance concern.

Is there any other-solution for this, so that i could disable the Cntrl + P (without binding event)?

Note: Important and good thing is our customer uses only Google Chrome browser to access this application.

  • 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-09T15:18:37+00:00Added an answer on June 9, 2026 at 3:18 pm

    As per my understanding, if some one have professional web based POS or business app, so for printing purpose you could use JZebra java applete, this would really resolve your all problems, because it doesn’t have any dependencies on browser like print preview or browser’s inbuild css etc..

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

Sidebar

Related Questions

CodeIgniter by default support only one application. I want multiple applications based on subdomain.
In my home and work pc's and in one friend of mine's it runs
As comment to one of the questions here a commenter wrote (emphasis mine): ...
Let's say I have one project with the following POM: <groupId>com.mine</groupId> <artifactId>coreJar</artifactId> <packaging>jar</packaging> <version>0.0.1-SNAPSHOT</version>
When compiling my Haskell application with the -Wall option, GHC complains about orphaned instances,
Suppose there are two executables. One is mine and the other is some other
A client of mine has an application written in Classic ASP and COM+. The
I was looking through the code for an old Android application of mine, and
One friend of mine is beginner programmer and he is trying to learn classic
I have a web application with a custom configuration section. That section contains information

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.