SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member t94xr's Avatar
    Join Date
    Aug 2003
    Location
    Taupo NZ
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what does this do?

    What does this do?
    And how come it so popular among websites?


    Code:
    <script language="JavaScript">
    <!--
    
    function SymError()
    {
      return true;
    }
    
    window.onerror = SymError;
    
    //-->
    </script>

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2002
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's actually the basis of an error-trapping function for Javascript errors, but as all the function does is return true, it effectively suppresses the browser's standard error warnings. So its use is to cover up sloppy Javascript coding.

  3. #3
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi t94,

    The only times I saw "Sym..." was in this post and the one (presumably you) posted on another forum; to wit: "window.open = Sym....". So, I'm not aware of any 'popularity', but if you have seen it in a number of places, it's probably the result of some over-featured web editor.

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  4. #4
    SitePoint Member t94xr's Avatar
    Join Date
    Aug 2003
    Location
    Taupo NZ
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ahhh ok

    This is the only forum I've posted it this question up as.
    Can you find out what this other persons username is? If its like mine get them to contact me cuz I'm the ONLY one in the world with my username. And Im the only one in the world who has a website with my name.

    Like im t94xr & i have www.t94xr.net.nz - i made sure there was no one with this name when i chose it. :S

  5. #5
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Calm down, t94

    I doubt the user has your name; it was the question & 'sym' that caught my eye

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  6. #6
    SitePoint Member t94xr's Avatar
    Join Date
    Aug 2003
    Location
    Taupo NZ
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh phew!

    thanks - lol i really am the only one in the world ya know


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
  •