Solved

How to do a "print" icon on the web page

Posted on 2000-03-31
3
265 Views
Last Modified: 2010-04-09
I'm doing a web for a client and he wants a "print" icon on the actual page where someone could print the page by clicking on the icon.  Although I've seen something similar in terms of a "save" icon, I've never seen a "print" icon.  Can this be done?  Can you assit me or direct me to a page where this has been done?  Thanks.
0
Comment
Question by:pja15
  • 2
3 Comments
 
LVL 1

Expert Comment

by:bassque
ID: 2674337
<html>
<head>
<title></title>
</head>
<body>
<form>
<INPUT type='button' value='Print' onClick='self.print();'>
</form>
<!--or<A href='#' onClick='self.print();return(false);'>Print</a>-->
</body>
</html>

simple as that
enjoy
0
 
LVL 1

Accepted Solution

by:
bassque earned 100 total points
ID: 2674341
<html>
<head>
<title></title>
</head>
<body>
<form>
<INPUT type='button' value='Print' onClick='self.print();'>
</form>
<!--or<A href='#' onClick='self.print();return(false);'>Print</a>-->
</body>
</html>

whoops...I meant that as an answer not a comment
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 2680247
Or:

<FORM>
 <INPUT type='image' src='myprintimage.gif' onClick='self.print();'>
</form>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML page and JavaScript 2 85
Finding (and replacing) text between two strings in Php 7 50
WordPress Themes 10 34
Problem with a CSS in a page 2 25
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now