Skip to content

Instantly share code, notes, and snippets.

@felipegenuino
Created March 29, 2015 21:51
Show Gist options
  • Save felipegenuino/150f8d1e6adcd8c5068b to your computer and use it in GitHub Desktop.
Save felipegenuino/150f8d1e6adcd8c5068b to your computer and use it in GitHub Desktop.
<script>
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function(){
if(xhr.readyState === 4){
document.getElementById('ajax').innerHTML = xhr.responseText;
}
};
xhr.open('GET','sidebar.html');
xhr.send();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment