현재 보고 있는 페이지를 저장하기 > script

본문 바로가기

script

현재 보고 있는 페이지를 저장하기

작성일 07-01-16 09:11

페이지 정보

작성자서방님 조회 216회 댓글 0건

본문

보여지는 화면을 html이나 txt파일로 저장하는 방법입니다.


<script language = "javascript">
function Save()
{
  Some.document.open("text/html","replace")
  Some.document.write(document.documentElement.outerHTML )
  Some.document.close()
  Some.focus()
  Some.document.execCommand('SaveAs')
}
</script>

<iframe id="Some" style="display:none"></iframe>
<input type="button" value="저장" onClick="Save()"></p>

댓글목록

등록된 댓글이 없습니다.

전체 846건 46 페이지
게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기