What does this do?
And how come it so popular among websites?
Code:<script language="JavaScript"> <!-- function SymError() { return true; } window.onerror = SymError; //--> </script>
| SitePoint Sponsor |
What does this do?
And how come it so popular among websites?
Code:<script language="JavaScript"> <!-- function SymError() { return true; } window.onerror = SymError; //--> </script>
t94xr
http://www.t94xr.net.nz/
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.




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
moderator at:Webxpertz Forums
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
t94xr
http://www.t94xr.net.nz/




Calm down, t94
I doubt the user has your name; it was the question & 'sym' that caught my eye
Vinny
moderator at:Webxpertz Forums
oh phew!
thanks - lol i really am the only one in the world ya know![]()
t94xr
http://www.t94xr.net.nz/
Bookmarks