MastodonHelp/web/site/mustard/js/confirma.js
pezcurrel 5ec1354546 ...
2020-10-18 06:53:27 +02:00

4 lines
447 B
JavaScript

function confirma(tit,msg,notxt,yestxt,noact,yesact) {
document.getElementById('popupcont').innerHTML='<h2>'+tit+'</h2>'+msg+'<input type="button" value="'+notxt+'" onClick="'+noact+'document.getElementById(\'popup\').style.display=\'none\'"><input type="button" style="margin-top:2px;" value="'+yestxt+'" onClick="'+yesact+'document.getElementById(\'popup\').style.display=\'none\'">';
document.getElementById('popup').style.display='table';
}