Solved

From a Link to a Button

Posted on 2004-09-19
3
199 Views
Last Modified: 2010-04-06
Hello,

THanks for reading our question.  Here is a bit of code that makes a link.  Clicking the link makes the current page print.  IS there any way to re-write the code to make it a button?  So that, instead of a link to print the page, one sees a button to click to print the page?

<a href="#" onclick="window.print();return false;">print this page</a>

Many thanks,

Yunkaa
0
Comment
Question by:yunkaa
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
sajuks earned 500 total points
ID: 12099195
<INPUT TYPE="button" value ="Print this page"  onclick="window.print();">
0
 

Author Comment

by:yunkaa
ID: 12099245
BEAUTIFUL, FABULOUS, WONDERFUL.... THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12099257
Thanks for the points and grade
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

778 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