• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

From a Link to a Button

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
yunkaa
Asked:
yunkaa
  • 2
1 Solution
 
sajuksCommented:
<INPUT TYPE="button" value ="Print this page"  onclick="window.print();">
0
 
yunkaaAuthor Commented:
BEAUTIFUL, FABULOUS, WONDERFUL.... THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0
 
sajuksCommented:
Thanks for the points and grade
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now