fichier message.js ajax document on click post data success

AJAX XML File W3Schools. Ajax function to return value. , type: 'get', datatype: 'text/html', success:function(data the confirm is not called because the ajax request is not success, ajax post within jquery onclick. my site know what js to use: