'P/L > JavaScript' 카테고리의 다른 글
유용한 js 모음사이트 링크 (0) | 2014.04.08 |
---|---|
response state값 확인 (0) | 2014.01.07 |
유용한 js 모음사이트 링크 (0) | 2014.04.08 |
---|---|
response state값 확인 (0) | 2014.01.07 |
jslab.dk : Date.format 등 다양한 js 라이브러리 제공
http://www.jslab.dk/library/Date.format
MSDN : Date 날짜, 시간 연산 등
http://msdn.microsoft.com/ko-kr/library/ee532932(v=vs.94).aspx
Javascript] slice() 함수 : Array Copy (링크) (0) | 2014.11.21 |
---|---|
response state값 확인 (0) | 2014.01.07 |
<!DOCTYPE html>
<html>
<head>
<script>
function loadXMLDoc() {
var xmlhttp;
if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else {// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
alert('true');
}
}
xmlhttp.open("GET","http://www.naver.com",true);
xmlhttp.send();
}
</script>
</head>
<body>
<div id="myDiv"><h2>Let AJAX change this text</h2></div>
<button type="button" onclick="loadXMLDoc()">Change Content</button>
</body>
</html>
출처 : http://www.w3schools.com/ajax/ajax_xmlhttprequest_onreadystatechange.asp
Javascript] slice() 함수 : Array Copy (링크) (0) | 2014.11.21 |
---|---|
유용한 js 모음사이트 링크 (0) | 2014.04.08 |