Hi folks,
I’ve posted a thread in CSS (“Weird stuff happening”) which explains how some code is disappearing from my web pages when I view them at home.
I’m also getting the dual problem of getting unwanted JavaScript in my pages when I View Source:
This at the top of the page:
<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>
and this at the bottom:
<script language=”JavaScript”>
<!–
var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}
function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
//–>
</script>
I didn’t put this there! Any ideas why this is being rendered in my source?
This only happens when I view my pages at home – not on my work computer. When I pulled a page back off the ftp server to check whether this code is there it wasn’t.
I’m stumped!
Any help is very gratefully accepted. Cheers.