4 lines
398 B
JavaScript
4 lines
398 B
JavaScript
function confirma(msg,act) {
|
|
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\'">';
|
|
document.getElementById('popup').style.display='table';
|
|
}
|