<div id="container-printable">
<DIV style="text-align:right;"><a href="javascript:void(0);" onclick="PrintablePrint();return false;" id="A1" name="_print_anchor">พิมพ์</a>
|
<a href="javascript:void(0);" onclick="window.close();return false;" name="_print_anchor">ปิด</a>
</DIV>
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<h2>Link example</h2>
<a href="javascript:window.print();">W3Docs.com</a>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<script>
function printPage() {
window.print();
}
</script>
</head>
<body>
<input type="button" value="Print this page" onclick="printPage()" />
</body>
</html>\