How to hide a javascript error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • miraan
    New Member
    • Apr 2008
    • 24

    #1

    How to hide a javascript error

    Hi, I am getting a javascript error but my page works perfectly fine and nothing is wrong, how do i hide the javascript error pop up window that appears when you visit the web page?
  • mrhoo
    Contributor
    • Jun 2006
    • 428

    #2
    what is the error message?

    Comment

    • hsriat
      Recognized Expert Top Contributor
      • Jan 2008
      • 1653

      #3
      Originally posted by miraan
      Hi, I am getting a javascript error but my page works perfectly fine and nothing is wrong, how do i hide the javascript error pop up window that appears when you visit the web page?
      Use try catch statement.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Originally posted by miraan
        Hi, I am getting a javascript error but my page works perfectly fine and nothing is wrong
        No, if you have an error, something is usually wrong. Just because it's working fine doesn't mean that everything is OK. Always try to get rid of the error (if possible) rather than look for a fix.

        Comment

        • dlite922
          Recognized Expert Top Contributor
          • Dec 2007
          • 1586

          #5
          Originally posted by miraan
          Hi, I am getting a javascript error but my page works perfectly fine and nothing is wrong, how do i hide the javascript error pop up window that appears when you visit the web page?
          Use a browser like firefox, when your page loads, go to Tools -> Error Console.

          There you will see the error and might even take you to the line of code that is wrong if you click the error.

          You cannot _hide_ how the browser works, unless you OWN the browser and chose to not show a specific error.

          Comment

          Working...