button from this code

R

RAYMOND PISTEY

How do I make this into a button?
<a onclick="ClickHereToPrint();">Print</a>

Thanks
Ray
 
F

freemont

How do I make this into a button?
<a onclick="ClickHereToPrint();">Print</a>

<input type="button"> etc.

Never mind, just search the Web for print button.
 
J

Jukka K. Korpela

freemont said:
<input type="button"> etc.

Never mind, just search the Web for print button.

What you find would probably not tell quite clearly that print buttons are
generally worse than useless. How is the user expected to guess what the
button does, as opposite to using a browser's print function (which everyone
and his sister learns to use by the age of eight these days)?

If a clueless point has told you to spoil a page with a print button and you
think you cannot find a decent job fast enough, then at least
a) make the button JavaScript-generated so that it won't mislead people when
JavaScript is off
b) add a tooltip text, with title="..." or, better, with JavaScript and CSS,
telling what the button actually does, e.g. "print this page without
navigation", if your function actually does that.
 
J

Jonathan N. Little

RAYMOND said:
How do I make this into a button?
<a onclick="ClickHereToPrint();">Print</a>

Simple, you don't there is a button for that already in the
button bar of the browser!
 
C

cwdjrxyz

How do I make this into a button?
<a onclick="ClickHereToPrint();">Print</a>

If you desire a button rather than just a text link, I suggest you use
a button with text on the button. This can be made with many graphic
programs, an an extension of php,etc. However the fast and easy method
is to use a free online button maker. You will find several of these
on a Google search. One that I just tried is http://cooltext.com/ .
The site will do other things in addition to making buttons. An
example that I just made there is at http://www.cwdjr.net/pic/cooltext457275235.png
.. The site also outputs a sample html code for the button you made. I
just made a simple button, but there are many bells and whistles you
can add.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top