R
Robert Oschler
If I set window.onerror to an error handler I've created, I don't see the
browser error dialogs anymore but I don't see the alert() messages in my
error handler pop up either. Can someone tell me what I am doing wrong?
Here's the test doc I'm using:
=========== BEGIN TEST DOC ===================
<HTML>
<TITLE> OnError Test </TITLE>
<HEAD>
<script>
window.onerror=x;
function x(a, b, c)
{
alert("hello");
alert(a + b + c);
return true;
}
</script>
</HEAD>
<BODY>
<script>
bbb(); // Function doesn't exist so it triggers error.
</script>
</BODY>
</HTML>
========== END TEST DOC ==========
--
Robert Oschler
"Let the web hear you, add your voice to your web site in minutes!"
-- http://audiodirect.spiderchase.com/
(For a limited time, free voiceover with every sign-up, use this link
instead)
-- http://audio.spiderchase.com/
(A song - are you blue?)
-- http://bluedreams.spiderchase.com/
browser error dialogs anymore but I don't see the alert() messages in my
error handler pop up either. Can someone tell me what I am doing wrong?
Here's the test doc I'm using:
=========== BEGIN TEST DOC ===================
<HTML>
<TITLE> OnError Test </TITLE>
<HEAD>
<script>
window.onerror=x;
function x(a, b, c)
{
alert("hello");
alert(a + b + c);
return true;
}
</script>
</HEAD>
<BODY>
<script>
bbb(); // Function doesn't exist so it triggers error.
</script>
</BODY>
</HTML>
========== END TEST DOC ==========
--
Robert Oschler
"Let the web hear you, add your voice to your web site in minutes!"
-- http://audiodirect.spiderchase.com/
(For a limited time, free voiceover with every sign-up, use this link
instead)
-- http://audio.spiderchase.com/
(A song - are you blue?)
-- http://bluedreams.spiderchase.com/