Click to See Complete Forum and Search --> : SymError and SymWinOpen


tbod
01-21-2003, 11:06 AM
I noticed that the script below exists on one of my pages when viewing the source code via the browser.

Since I did not add this script myself, I would guess that it is being generated (from the server?).

Can anyone provide me with the reason why (and how) this script would become part of the page?

Thanks.
T


<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

ShrineDesigns
01-21-2003, 03:38 PM
alot of free host do this

the server detect someone downloading a page and inserts that script

tbod
01-22-2003, 09:13 AM
I appreciate the response, and I have no reason to doubt that a lot of free hosts would do this.

The question now is: WHY?

I don't really understand the script - so I don't really know what it's purpose is - and maybe if I did it would alleviate my confusion - but it even shows in the source code for THIS page.

Also, I pay to have my site hosted (it's certainly not free) and I would just like to know why I am finding this code inserted into my (and other) pages when viewing the source code from the browser.

Anyone?
(and an explanation of what the code's purpose is would be much appreciated).
Thanks
T