Solved

From a Link to a Button

Posted on 2004-09-19
3
182 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 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

24 Experts available now in Live!

Get 1:1 Help Now