MastodonStartpage/web/mustard/js/confirma.js

5 lines
398 B
JavaScript
Raw Normal View History

2020-01-08 14:52:20 +01:00
function confirma(msg,act) {
2020-01-13 17:16:33 +01:00
document.getElementById('popupcont').innerHTML='<h2>Attenzione</h2>'+msg+'<input type="button" value="No" onClick="document.getElementById(\'popup\').style.display=\'none\'"><input type="button" style="margin-top:2px;" value="Si" onClick="'+act+';document.getElementById(\'popup\').style.display=\'none\'">';
2020-01-08 14:52:20 +01:00
document.getElementById('popup').style.display='table';
}