작성일 : 11-12-07 11:31
|
[JQuery] Detect 404 error from included JavaScript file
|
|
|
글쓴이 :
조형래
 조회 : 3,342
|
$.ajax({
url: "test.html?callback=?",
dataType: "jsonp",
success: function(data){
// your logic
} statusCode: {
404: function() {
alert('page not found');
}
}
});
|
|