AJAX TEST
페이지 정보
본문
<div id="demo">
<h1>The XMLHTTPREQUEST Object</h1>
<button type="button" onclick="loadDoc()">Change Content</button>
</div>
<script>
function loadDoc(){
const xhttp= new XMLHttpRequest();
xhttp.onload= function(){
document.getElementById("demo").innerHTML= this.responseText;
}
xhttp.open("GET", "/zz/text/infomation/youtube.txt");
xhttp.send();
}
</script>
<h1>The XMLHTTPREQUEST Object</h1>
<button type="button" onclick="loadDoc()">Change Content</button>
</div>
<script>
function loadDoc(){
const xhttp= new XMLHttpRequest();
xhttp.onload= function(){
document.getElementById("demo").innerHTML= this.responseText;
}
xhttp.open("GET", "/zz/text/infomation/youtube.txt");
xhttp.send();
}
</script>
The XMLHTTPREQUEST Object
- 다음글youtube hymn 22.10.10
댓글목록
등록된 댓글이 없습니다.