Detecting a script error in a browser object.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mufasa

    Detecting a script error in a browser object.

    Is there any way to detect if there is an error in a script for a page
    through the browser object? Or at least turn it off? I know I can set it
    through IE but was wondering if I can do it programtically for my object.

    TIA - Jeff.


  • =?Utf-8?B?U2l2YSBN?=

    #2
    RE: Detecting a script error in a browser object.

    For IE, see if this can help you:

    The error event is fired on an element when a resource failed to load, or can't be used. For example, if a script has an execution error or an image can't be found or is invalid.


    "Mufasa" wrote:
    Is there any way to detect if there is an error in a script for a page
    through the browser object? Or at least turn it off? I know I can set it
    through IE but was wondering if I can do it programtically for my object.
    >
    TIA - Jeff.
    >
    >
    >

    Comment

    • Mufasa

      #3
      Re: Detecting a script error in a browser object.

      Thanks. But I need to be doing it from the browser object not the browser.
      I've got a program that has a browser object in it and loads web pages
      (which aren't under my control) and sometimes I get script errors because
      somebody did something stupid. I'm just looking for a way to hide the popup.

      TIA - Jeff.

      "Siva M" <shiva_sm@onlin e.excite.comwro te in message
      news:2B1EA7C1-2CCA-40CA-A679-F3368AF11423@mi crosoft.com...
      For IE, see if this can help you:
      >
      The error event is fired on an element when a resource failed to load, or can't be used. For example, if a script has an execution error or an image can't be found or is invalid.

      >
      "Mufasa" wrote:
      >
      >Is there any way to detect if there is an error in a script for a page
      >through the browser object? Or at least turn it off? I know I can set it
      >through IE but was wondering if I can do it programtically for my object.
      >>
      >TIA - Jeff.
      >>
      >>
      >>

      Comment

      Working...