6 lines
319 B
JavaScript
6 lines
319 B
JavaScript
function alerta(msg,en) {
|
|
var warntxt='Attenzione';
|
|
if (en) warntxt='Warning';
|
|
document.getElementById('popupcont').innerHTML='<h2>'+warntxt+'</h2>'+msg+'<input type="button" value="Ok" onClick="document.getElementById(\'popup\').style.display=\'none\'">';
|
|
document.getElementById('popup').style.display='table';
|
|
}
|