Forum Moderators: open

Message Too Old, No Replies

This java script is on all of my pages

I don't know how it's got there so can you help

         

kar3n

1:22 pm on Apr 29, 2008 (gmt 0)

10+ Year Member



I have this code at the bottom of all of my pages but I haven't put it there and it isn't there until the page is uploaded. Does anyone have any ideas.
I recently read it's something to do with Norton which I have on my computer so maybe it's not doing any real harm hopefully.
here's the script

<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>

You can see it on the very bottom of the source code on my pages

Many thanks
Karen

[edited by: encyclo at 2:01 pm (utc) on April 29, 2008]
[edit reason] no personal URLs thanks [/edit]

pageoneresults

1:48 pm on Apr 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello kar3n, Welcome to WebmasterWorld!

What you are seeing is your security software injecting its own JavaScript into the page before it loads in your browser. This is not something that is on your "actual page" but only appears there after it loads in your browser due to the security software you are using.

Changing your security settings would get rid of this code if you needed to. It is Norton's way of preventing malicious attacks on your system.

kar3n

1:55 pm on Apr 29, 2008 (gmt 0)

10+ Year Member



Hi

Wow. Thanks for the welcome and such a quick response too!

So it looks like I can put my mind at rest now then.

I hope this also helps anyone else who may see the same thing as well.

Many many thanks as I've been worried about all this stuff about hacking websites which I'm sure I've lots to learn about there.

Karen

httpwebwitch

2:04 pm on Apr 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This script redefines window.open and window.onunload, a method and event respectively.

By itself it doesn't seem like this script would do anything, since some of the objects (like SymRealWinOpen) are undefined. But I suspect this script is not acting in isolation.

I'd put this in the "harmless but annoying" category. If you're doing any serious custom javascript work, it could get in your way.