원하는 URL를 입렵하면 HTML 소스를 보여준다.
| Script Example |
<html><head><title>Demo36</title>
<script language="JavaScript">
<!--
function add()
{ var ress=window.prompt("보고싶은
HTML 페이지 URL 을 적으세요.\n ex)http://auto.av.hangkong.ac.kr/~tianai");
window.location="view-source:"+ress;
}
//--> </script> </head>
<body> <center>
<form method="get"> <input type="button"
value=" HTML 훔쳐보기 " onclick="add()">
</form> </center> </body>
</html> |
|
|
| 설명 |
| 파란색부분에서 프롬프트 윈도우의 멧세지를 입력하면된다. |
|
|
|
|