스

로컬에서 사용하는 자바스크립 HTML소스가져오기

삽질중 우연히 아래 소스를 발견해서 올립니다.
참고하세요.
<html>
<head>
<title>::: 노글스 :::</title>
</head>
<body>
<input type=button onClick=chk() value="chk">
결과

<script>
var sHttp = new ActiveXObject("Microsoft.xmlhttp");

function httpGet(szURL) {
sHttp.open("get",szURL,false);
sHttp.setRequestHeader( "Content-type:", "application/x-www-form-urlencoded");
sHttp.setRequestHeader("Content-Encoding:", "euc-kr");


sHttp.onreadystatechange = onRetriveComplete;
try{
sHttp.send("code=tnt2");
}
catch(e) {
return ("Not exist");
}

if (sHttp.status > 200) {
return("not exist<br>");
} else


return(sHttp.responseText);

}

function onRetriveComplete() {
sHttp.onreadystatechange = noop; //re-entrant gate
if (sHttp.readyState == 4) {
}
}

function noop() {
return false;
}

function chk() {

getData=httpGet("http://www.phpschool.com/bbs2/inc_board.html");

document.noglsForm.test.value=getData;

}
</script>

<form name=noglsForm>
<textarea name=test rows=200 cols=200></textarea>
</form>
</body>
</html>



//////////php스쿨발췌~~<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
|

댓글 4개

- ㅝ~~~~~!

감사 합니다~! (__)끄빡
감사합니다~
감사합니다~
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
12-01-11 조회 2,775
12-01-11 조회 1.2만
12-01-10 조회 2,871
12-01-08 조회 3,460
12-01-05 조회 5,349
11-12-29 조회 3,069
11-12-27 조회 2,858
11-12-25 조회 3,038
11-12-22 조회 3,475
11-12-14 조회 2,936
11-12-12 조회 3,574
11-11-28 조회 3,394
10-10-19 조회 2,853
08-09-05 조회 3,770
08-09-05 조회 3,589
08-06-14 조회 3,328
08-04-22 조회 3,611
08-04-17 조회 3,615
07-10-03 조회 4,225
07-10-03 조회 3,620
07-10-03 조회 7,303
07-10-03 조회 4,581
07-10-03 조회 3,284
07-10-03 조회 2,873
07-10-02 조회 3,588
07-10-02 조회 3,114
07-09-27 조회 5,036
07-09-27 조회 3,861
06-09-26 조회 3,524
06-09-26 조회 4,746
06-09-22 조회 3,919
06-09-22 조회 3,537
06-09-22 조회 4,288
06-09-21 조회 4,216
06-08-18 조회 3,709
05-11-30 조회 4,752
05-07-15 조회 4,608
05-03-23 조회 4,662
05-03-14 조회 3,331
05-03-13 조회 2,705
04-08-05 조회 5,781