xxxxxxxxxx
window.history.pushState(null, null, window.location.href);
window.onpopstate = function () {
window.history.go(1);
};
xxxxxxxxxx
function isNumber(text){
return text.toString() !== 'NaN' && Number(text).toString() === text.toString().trim();
}