/    Sign up×
Community /Pin to ProfileBookmark

Unwanted JavaScript

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.

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@CharlesJul 24.2004 — I get that too. In my case it's added by Norton Internert Security.
Copy linkTweet thisAlerts:
@FangJul 24.2004 — 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)
Copy linkTweet thisAlerts:
@DolboauthorJul 24.2004 — 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.
×

Success!

Help @Dolbo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...