473,320 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

disabling print option

Is there any way by which i can disable the print option of the browser or hide the dialog box of the print option so user can not take the print.?
I used css media print but i want to hide it............
Mar 27 '12 #1
7 1999
Dormilich
8,658 Expert Mod 8TB
Is there any way by which i can disable the print option of the browser or hide the dialog box of the print option so user can not take the print.?
since printing is the responsibility of the browser, no.

even if you can somewhat make it inconvenient to print, disabling JS would probably resolve that.
Mar 27 '12 #2
Is there any way by which we can change the browser settings dynamically?

How can i disable the print button in my particular page or i can hide the whole tool bar at the page load not using click event...............
Mar 27 '12 #3
Dormilich
8,658 Expert Mod 8TB
Is there any way by which we can change the browser settings dynamically?
no. would you like to have your browser settings changed by any (malicious) website?


How can i disable the print button in my particular page or i can hide the whole tool bar at the page load not using click event
if it’s your button (generated through HTML) … just omit it. if it’s the button of the browser GUI … no way.
you can only disable the tool bar when explicitly opening a window through JavaScript (parameter set in window.open()). though whether that is successful depends on the user’s preference.
Mar 27 '12 #4
Thank You Dormilich.....

It means we also can not change any browser config setting dynamically.

So what should i do for content security?

I already disabled all the cntrl + options....
Mar 27 '12 #5
Dormilich
8,658 Expert Mod 8TB
So what should i do for content security?
if you mean that the user should not be able to change his copy of your HTML … impossible.
Mar 27 '12 #6
i used print media option using CSS and it's working the user is not getting my content but i was looking for disable option.
By the way Thank you so much friend......
Mar 27 '12 #7
Rabbit
12,516 Expert Mod 8TB
Just be aware though that not every browser version supports the print media option in CSS.
Mar 27 '12 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John | last post by:
Hi How can I disable or hide a menu item via vba? Thanks Regards
3
by: JOSHUA JACKS | last post by:
I accidentally removed the "Print" option from the default "File" menu (don't ask). When I replaced it, the replacement prints automatically without calling up the print dialog. I can still get...
0
by: Trythat | last post by:
How can I disable the 'information dialog' that pops up before the print preview form shows itself?
0
by: Bill Nguyen | last post by:
I have a report that would gray out the print icon when preview (in a .NET VB app). This report uses an SQLserver stored procedure. Other reports using view or tables do not have this problem. I...
1
by: kumar | last post by:
Hello every one, Can any one help me how can i print values of my webpage with just a button in the webpage. From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework-aspnet.htm ...
1
by: Steff | last post by:
I am wandering if my code is making sense... I use a lot the print function. Is it weird in this case where I have to display an array ? I thought it would be better to have the entire array in php...
1
by: Avradita | last post by:
Hello to all, I have a website where I would like to place a print button so that the user from his/her end can take a print out of any particular page. I know that this can be done with the help...
5
by: paul814 | last post by:
Is it possible to disable the print option under file and also the ctrl-p option on a specific page?
1
by: Albin | last post by:
Hi, I have a form in which i have two text boxes one for entering email and the other for verify email (to make sure the user entered the correct email id we are asking to enter the same email id...
11
by: JWest46088 | last post by:
I'm having difficulty trying to figure out how to print a text file from a hash table one line at a time. I have the text file read into the hash table and can print the text file all at once, but I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.