Lo logre utilizando localstorage
function inicio0(ida) {
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","bd.php?idu="+idu+"&ida="+ida,true);
xmlhttp.send();
document.getElementById("btn0").disabled = true;
document.getElementById("btn0.0").disabled = false;
localStorage['btn0'] = 'true'
}
El código al iniciar la página
window.onload = function(){
if(localStorage['btn0'] == 'true'){
document.getElementById("btn0").disabled = true;
if(localStorage['btn0.0'] == 'true'){
document.getElementById("btn0.0").disabled = true;
}else {
document.getElementById("btn0.0").disabled = false;
}
}
};