 |
|
|  |
|
 |
15년 전 |
function getHttprequest(URL) {
var xmlhttp = null;
if(window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
} else {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open('GET', URL,false);
xmlhttp.onreadystatechange = function() {
if(xmlhttp.readyState==4 && xmlhttp.status == 200 && xmlhttp.statusText=='OK') {
responseText = xmlhttp.responseText;
}
}
xmlhttp.send('');
return responseText = xmlhttp.responseText;
}
단순히 자바스크립트에서 getHttprequest(부를 주소);
부르면 그 페이지의 결과를 받을 수 있습니다.
물론 페이지의 이동은 없이요. |
|
추천 : 976 |
추천
목록
|
|
|  |
|