Yngvarr

Generation

generate functionSat, 04 Feb 2023

ajax post this page

function ajax(url, type){ var xhr = new XMLHttpRequest(); xhr.open(type || 'GET', url, true); xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); xhr.send(); } ajax('/posts') ajax('/posts', 'POST')

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant