Contact Me!
Plesk Control Panel Demo - Plesk Control Panel Demo
Other pages in this category
Account ManagementPlesk Control Panel Demo
Tutorials and GuidesBandwidth Explained
Mail Authentication (POP before SMTP)Publishing with FrontPage 2000
Publishing with FrontPage 2003Spam And Virus Scanning
Calculate disk space usageFrequently Asked Questions about Smart Hosting
Phishing Scams
 
Norton System Works Scripts

This code below is a Norton System Works feature to prevent pop-up windows and other malicious scripts. The script can be disabled in the Internet Security menu. You may notice that the code reassigns the window.open command to a generic object.

1. Script block:

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

2. Script block:

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

 
Email this page to another person.
Have you seen a mistake on this page, please tell us about it?
© 2010 Webonline all rights reserved. All names and trademarks are the property of their respective owners.