Simple JavaScript help?
-
Write a custom error handling JavaScript function called processErrors that handles a custom error by assigning it to the onerror event handler. Include the block of JavaScript statements needed to pass the arguments sent by the JavaScript interpreter into the processErrors function, send an alert message with the agreements, return, and write the event handler that calls the processErrors function. This is what I came up with so far onerror=processErrors function handleErr() { //Handle the error here return true }
-
Answer:
Do you mean this? try { //Run some code here } catch(err) { //Handle errors here }
Darian at Yahoo! Answers Visit the source
Related Q & A:
- How To Make Simple Flash Website?Best solution by Yahoo! Answers
- How To Solve Simple Bilinear Equations Under Extra Linear Constraints?Best solution by mathoverflow.net
- how to process a simple loop in WWW::Mechanize to be more efficient?Best solution by stackoverflow.com
- Why is Javascript called Javascript, if it has nothing to do with Java?Best solution by Stack Overflow
- Need help debugging a javascript?Best solution by allwebdevhelp.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.