H
howa
Are there any method to stop the current JS execution on a page
safely, something like PHP's die() functuin ?
safely, something like PHP's die() functuin ?
howa said:Are there any method to stop the current JS execution on a page
safely, something like PHP's die() functuin ?
Are there any method to stop the current JS execution on a page
safely, something like PHP's die() functuin ?
Are there any method to stop the current JS execution on a page
safely, something like PHP's die() functuin ?
[...]
Yes javascript does come with error handling, and it work's just like
java.
try{
var myObj = document.missing.element;
} catch (e) {
alert('Error looking for document.missing.element\n' + e);
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.