how to hide java script error from task bar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamill
    New Member
    • Dec 2006
    • 71

    how to hide java script error from task bar

    I am calling a function on body onload for auto submition form, script is working fine but i am getting error(document. frmname is null or not an object) at IE taskbar. how to hide it.
    my function is below
    [HTML]<script>
    function subfinal()
    {
    document.finalf rm.submit();
    }
    </script>[/HTML]

    and i am calling it as
    [HTML]<body onLoad="return subfinal();">
    [/HTML]
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hi ...

    to hide it ... fix it :) ... i'm not kidding ... don't hide errors, avoid and/or fix them and don't let them be as they are ... show more code, in case you need help on this ... even the html code please.

    kind regards

    Comment

    • JamieHowarth0
      Recognized Expert Contributor
      • May 2007
      • 537

      #3
      Originally posted by kamill
      I am calling a function on body onload for auto submition form, script is working fine but i am getting error(document. frmname is null or not an object) at IE taskbar. how to hide it.
      my function is below
      [HTML]<script>
      function subfinal()
      {
      document.finalf rm.submit();
      }
      </script>[/HTML]

      and i am calling it as
      [HTML]<body onLoad="return subfinal();">
      [/HTML]
      Hi kamill,

      Check the name of your form object (specified using [HTML]"<form name="finalfrm" >[/HTML]), as that is the only instance I can think of where IE would return a "null or not object" error in JS.

      Thanks,

      medicineworker

      Comment

      Working...