Con javascript è possibile utilizzare l’istruzione TRY / CATCH per poter catturare i messaggi di errore che compaiono.
Il codice che permette ciò è il seguente:
function … {
…
try {
…
catch(err) {
txt=”There was an error on this page.\n\n”
txt+=”Error description: ” + err.description + “\n\n”
txt+=”Click OK to continue.\n\n”
alert(txt)
}
}
Nel modo descritto, se c’è un’errore nel codice all’interno del TRY, viene catturato e visualizzato nell’alert.
lung http://irollingxmyo.AACEHARDWARE.INFO/tag/lung+allergies+chest/ : lung…
lung…