$("button").click(function(){
                                                  $.ajax({url: "demo_test.txt", success: function(result){
                                                      $("#div1").html(result);
                                                  }});
                                              });
                                            
                                            

A synchronous JavaScript And XML. AJAX is not a programming language. AJAX just uses a combination of: A browser built-in XMLHttpRequest object (to request data from a web server) JavaScript and HTML DOM (to display or use the data)