<button type="submit" class="SomeClass" onclick="myVariable();">_click_click</button>
function SomeFunctionName() {
var myVariable = getmyvariable();
myvariable.open('GET', '/SomeFile.html', true);
myvariable.onreadystatechange = function() {
if (myvariable.readyState == 4) {
if(myvariable.status == 200) {
alert(myvariable.responseText);
}
}
};
myvariable.send(null);
}