Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

From a Link to a Button

Posted on 2004-09-19
3
Medium Priority
?
224 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
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…
Suggested Courses

879 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