Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-15-2005, 11:34 AM   PM User | #1
Diane
New Coder

 
Join Date: May 2003
Location: South Wales, UK
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Diane is an unknown quantity at this point
2 unexplained Javascripts appearing on remote pages

Can anyone tell me how/why these Javascripts are appearing in my source code, and what their function is please? I haven't scripted them and they are not on my actual html document, but they are there when you click "View source" online. Is this auto-generated code by Dreamweaver, or my webhost, or has someone hacked into my webhost? Do I need to be worried? How do I remove them if necessary?

Thank you!

The first one appears in the head section:
Code:
<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 second one appears after the html closing tag:
Code:
<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>
Diane is offline   Reply With Quote
Old 04-15-2005, 11:43 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
That's Norton's auto-code insertion.

http://www.webdevtips.com/webdevtips/js/nis.shtml
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 04-15-2005, 12:00 PM   PM User | #3
Diane
New Coder

 
Join Date: May 2003
Location: South Wales, UK
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Diane is an unknown quantity at this point
Thank you very much for the info and the link - fascinating reading, but I do have to agree with the author of the article!

I certainly didn't know code could be added locally to my webpages!

Thanks again!
Diane is offline   Reply With Quote
Old 04-15-2005, 03:39 PM   PM User | #4
Harry Armadillo
Regular Coder

 
Join Date: Feb 2005
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Harry Armadillo is on a distinguished road
It's fairly common for end-users to have extra code inserted into pages they are viewing. Any number of cookie/popup blocking programs do it, Firefox's Greasemonkey extention alllows inserting arbitrary javascript code into pages, and my favorite, The Proxomitron, allow arbitrary javascript/html insertion and on the fly rewriting of pages.

Make your pages robust enough to survive the little assaults, and user-friendly enough to discourage the major assaults.

Last edited by Harry Armadillo; 04-15-2005 at 04:25 PM.. Reason: grammar and spelling
Harry Armadillo is offline   Reply With Quote
Old 04-15-2005, 03:55 PM   PM User | #5
Diane
New Coder

 
Join Date: May 2003
Location: South Wales, UK
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Diane is an unknown quantity at this point
I don't use pop-ups or any sort of ads on any of my sites, so hopefully the "end user" shouldn't have any problems.
Diane is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:45 PM.


Advertisement
Log in to turn off these ads.