How to Add a Print Button to HTML Page

How to Add a Print Button to HTML Page

58,307 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Rama Sutjipto N
Rama Sutjipto N - 24.04.2021 18:10

How to join colour with print in html ?..

Ответить
Anmol Singh
Anmol Singh - 18.01.2020 10:31

Awesome video.

Ответить
Status Nanba
Status Nanba - 03.09.2019 15:11

Using button tag


<button target="blank" style="cursor: pointer" onclick="window.print();">Print</button>

Ответить
MinisGallery com
MinisGallery com - 25.06.2019 09:31

So thankful I found this video. It helped me solve a simple problem where all other sites I was referencing were using javascript to accomplish the same thing. Thank you.

Ответить
clementella
clementella - 03.06.2019 00:57

To anyone looking to remove the print button:
1) Add class="print-button" to the print button.
2) Add @media print { .print-button { display:none; } } to your CSS in a <style> element.

Ответить
Sayed Mortaza kazemi
Sayed Mortaza kazemi - 18.02.2019 21:15

thanks alot

Ответить
dojajaje
dojajaje - 09.02.2019 04:57

thanks,but i dont want printer to print "PRINT BUTTON" or my url on my paper

Ответить
Mary Ann Ranola
Mary Ann Ranola - 20.10.2018 19:45

THANK YOU :)

Ответить
Sasitaren 271101
Sasitaren 271101 - 04.06.2018 16:41

thank you

Ответить
AR Tech
AR Tech - 29.05.2018 08:59

Thanks a lot mam, It definitely works but I want to print a particular portion like a <div> which contains I need to print out only. Besides this way "Ctrl+P" works the same. How it will possible? Pls. help in this regards . Thanks once again.

Ответить
Ninine Tahra
Ninine Tahra - 14.05.2018 01:48

THANKS BUT I WANT TO Remove print Button how i can do this ?

Ответить
Sleep Like A King, Wake Up Like A Warrior
Sleep Like A King, Wake Up Like A Warrior - 30.06.2017 22:27

Is there any way I can use an JPG image as a print screen?

Ответить
Rupesh Patil
Rupesh Patil - 02.12.2016 16:03

ek no...

Ответить
Explore kashmir
Explore kashmir - 15.03.2016 14:07

wonderful

Ответить
Mickey Mouse
Mickey Mouse - 30.09.2015 11:58

Very useful. Thank you!

Ответить
Spairo
Spairo - 01.03.2015 19:12

Thanks...

Ответить
Jalil Najafov
Jalil Najafov - 06.08.2013 13:58

GOOD :)

Ответить