HTML,CSS,JS

프린트 페이지 만들기

수퍼곰탱이 2007. 5. 10. 00:26
<SCRIPT LANGUAGE="JavaScript">
<!--
function printPage() {
    if (window.print) {
        agree = confirm('현재 페이지를 프린트 하시겠습니까 ?');
    if (agree) window.print();
   }
}
//-->
</script>

프린트 알럽창을 다시 띄우는 버튼은
<img src="btn_print.gif"  onclick="printPage()"  style='cursor:hand'>