473,385 Members | 1,474 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,385 software developers and data experts.

how to make a print control invisible in a printed page if window.print() is used

HI,i used javascript:window.print() in my application for print, but when the print is given am gettng that print button on the printed page. how to make that print button invisible
Mar 26 '07 #1
1 1795
Frinavale
9,735 Expert Mod 8TB
HI,i used javascript:window.print() in my application for print, but when the print is given am gettng that print button on the printed page. how to make that print button invisible
Have you tried something like:
javascript:onclick: window.print();btn_print.visible='false';
?

This will make the print button invisible but this also means that the user will never be able to click it again....

If your button does a post back to your server, the page will be refreshed and the button will become visible again, so you'd have to suppress any postback actions that the button may do.

Is this a .NET question or a JavaScript question?

-Frinny
Mar 26 '07 #2

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

Similar topics

4
by: q2005 | last post by:
Hi, All Is that posible to start to print atraight away without the window's "print" prompt when I do window.print()? Thank you! Jack
2
by: Pudlik, Szymon | last post by:
Hi, I have page with left banner (links), footer and header and of cours with some images and text. I want to print this page but without banner, header and footer. Only images and text. Is it...
2
by: msnews.microsoft.com | last post by:
It appears myButton_OnClick is triggering in my user control AFTER its parent's Page_Load already runs. Is there a way to make the parent Page_Load to run afterwards? I'm changing a session...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
3
by: dave | last post by:
I have a long data entry web page that requires the user to scroll down for further data entry boxes. There is a "Save changes" button towards the top of the screen which disappears as the user...
8
by: makunag | last post by:
Didn't get answer with google and in my regular forum. Came across this site and posting here. Your help will be highly appreciated ! Our application have frames - MainNav, TaskNave and Content....
1
by: Prasoon | last post by:
I have a JSP page on which when print is pressed - Records are fetched on a redirected page and those are to be printed. I use the lines - <script language="javascript"> window.print();...
1
by: esateesh | last post by:
how to make a print button invisible in the printed page when a print is given
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.