[java] 스크립트 – 페이지 프린트 하기
1번째
<a href=”#” onClick=”window.print()”>프린트</a><br>
2번째
<script language=”javascript”>
sAgent = navigator.userAgent;
t1 = sAgent.indexOf(“Mac”) > -1;
t10 = sAgent.indexOf(“MSIE”) > -1;
t11 = sAgent.indexOf(“IE 3”) > -1;
t101 = sAgent.indexOf(“IE 4”) > -1;
t110 = sAgent.indexOf(“IE 5”) > -1;
t111 = sAgent.indexOf(“Mozilla”) > -1 && !t10;
nick = t110;
if(nick){
document.write(“<input type=’button’ value=’Print’ onclick=’window.print()’>”);
}
//–></script>