Click to See Complete Forum and Search --> : Unwanted JavaScript


Dolbo
07-24-2004, 08:26 AM
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.

Charles
07-24-2004, 08:33 AM
I get that too. In my case it's added by Norton Internert Security.

Fang
07-24-2004, 09:51 AM
It's Norton's Ad Blocking and popup stopper. Turning it off appears to be the only solution at the moment.
http://www.filesaveas.com/solutions.html (near bottom of page)

Dolbo
07-24-2004, 09:54 AM
Problem solved......

....only been online for a few days and have more security than the Penatagon. Didn't think Norton were going to rewrite my pages though!

Thanks for your suggestions, it's appreciated.