고경a
2018. 3. 8. 11:30
인쇄하기 기능
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true; script.innerHTML = "window.onload = function(){ window.print();window.close();}"; var win = window.open(); win.document.write("<html><head>"+document.head.innerHTML+"</head><body>"+document.getElementById($.panMain.id).innerHTML+"</body></html>"); win.document.head.appendChild(script); win.document.close(); | cs |