Print button

game_on

Registered
Hi, on a pc, you can put a print button on a web page with the following code:

onClick='window.print();

How do you do this on a mac?

M@)
 
ehehe.. err... i think u can apply the same on your mac...

btw, it is a html coding... it doesn't matter if it done on windows, macos or even *nix...

=)
 
ah yes... it's a javascript... ehehe...

as for the print script... i notice u used this coding...

<A HREF='javascript' onClick='window.print(); return false'>Print</a>

can u try re-coding the script by omitting the 'return false' statement

<A HREF='javascript' onClick='window.print()'>Print</a>
 
ops.. shouldn't asked u to remove the 'return false' statement...

i get error 404 page... so sorry... my bad...

and now im using my at my office... will try it when i bring my ibook...
 
ok.. now im suing my ibook...

i use camino web-browser. your coding works just fine.

use the second print function.

the first works as well. but it will redirect other windows users to /javascript/ folder.
 
well chabig...

to technical people like u, yes... who need a print button why we can use cmd-P shortcut... but believe it or not... there are people who not so familiar with this shortcut key, might have problems if they want to print the page.

by saying this, i have met several people who don;t know how to use the print-command. =)
 
Back
Top