Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Error Try Catch

<p id="error"></p>

<script>
try {
  wrongalert("Welcome guest!");
}
catch(err) {
  document.getElementById("error").innerHTML = err.message;
}
</script>
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #Error #Try #Catch
ADD COMMENT
Topic
Name
8+4 =