Results 1 to 2 of 2

Thread: Suppress JS Error

  1. #1
    Join Date
    Nov 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Suppress JS Error

    Would someone be kind enough to show me how I can suppress this error message:

    Error:'null' is null or not an object
    Code: 0

    I would really really really appreciate it.

    Thanks!

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This doesn't cure it, but it makes the browser silently accept that there's an error.

    Code:
    <SCRIPT language="JavaScript">
    <!--
    function silentErrorHandler() {return true}
    window.onerror=silentErrorHandler()
    //-->
    </SCRIPT>
    Merry Christmas
    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •