In web development, sometimes we want the page to submit but do not refresh the current page, you can use XML HTTP Request Object to do processing, such as the following code: