JavaScript & Norton

ettubrute

Expert Member
Joined
Aug 27, 2004
Messages
4,887
Reaction score
109
Location
Overseas! :)
How do I bypass this rubbish that Norton Internet Security puts into web pages? Because it buggers up all subsequent use of JavaScript!

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

function SymError()
{
  return true;
}

window.onerror = SymError;

//-->
</script>
 
Uninstall Nortons. Use something real. I was once a Norton's man for many years, never going back.
 
Why exactly would this piece of JavaScript be a problem - all it does is suppress errors.

If it really bothers you that much just change the handler again, this time to one that returns false - basically telling the browser the event was NOT handled by the event function and should be bubbled up to the parent handler.

The code should be positioned so it appears just after the junk Norton puts in.

Code:
<script language="JavaScript">
<!--
window.onerror = function() { return false; }
//-->
</script>
 
Well, I don't know why it's a problem! But the site doesn't work anymore when it gets inserted! :( The window.onload() doesn't seem to fire anymore! Has me bafled!
 
Perhaps norton is remapping more than just the onerror event.
 
AFAIK NIS scans all javascript in web pages. So hopefully there's an option to disable scanning JavaScript in web pages.

And as pookfuzz said it can't just be that JavaScript causing the problem, there must be some other code.

Have you tried disabling ad blocking?
 
Last edited:
Yes... tried that! Funny thing is, if I disable Norton, the pages load without problems! So there must be something in that stupid handler breaking my code! But how to find out?
 
ettubrute said:
But how to find out?

View source on the broken page I would guess. It is not as if Norton will be able to magically hide what it is doing from you. Keep in mind that .js files will also be subjected to the same mangling the html files get.
 
Hmmm. Thanks. Checked the html files... will have to check the js files as well! Completely forgot about them! :o
 
Top
Sign up to the MyBroadband newsletter
X