Current location: Hot Scripts Forums » General Web Coding » JavaScript » what is the use


what is the use

Reply
  #1 (permalink)  
Old 06-25-05, 01:03 AM
xtreme231 xtreme231 is offline
Newbie Coder
 
Join Date: Jun 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb what is the use

i see almost every site has this piece of javascript on there page .can anybody tell me what is the use of this code.
thanks.
Quote:
<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>
Reply With Quote
  #2 (permalink)  
Old 06-25-05, 09:36 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
It's most likely that the sites actually DON'T have that piece of code on their pages.
That code is added by YOUR Anti-Popup software from Symantec.
It simply kills all error-messages and changes the function which creates new windows so you won't see the popups.
Reply With Quote
  #3 (permalink)  
Old 06-29-05, 08:35 AM
pg2sg pg2sg is offline
Newbie Coder
 
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
I wonder too when it injects the script into. Is it a browser plugins
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 10:49 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.