Print button for page

memanggil printer dengan kode javascript ga susah dan ga banyak tapi bagi yang males untuk mengetik dan bosen dengan keyboard (:P) coba copy teh, susu beuhhh jadi ngawur…, ywdah ini kodenya:

<script LANGUAGE=”JavaScript”>
if (window.print) {
document.write(‘
<form> ‘
+ ‘<input type=button name=print value=”Click” ‘
</input> + ‘onClick=”javascript:window.print()”> To Print this page!</form>’);
}
// End –>
</script>

<font FACE=”Tahoma”><a href=”http://www.javascriptfreecode.com/&#8221; mce_href=”http://www.javascriptfreecode.com/&#8221; TARGET=”_blank”><span STYLE=”font-size: 8pt; text-decoration: none”>JavaScript Free Code</span></a></font>

author:Krishna Eydatoula

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: