Forum Moderators: open
<html>
<head>
<script language="JavaScript">
</script>
<script src="common_help.js"></script>
<script language="JavaScript">
</script>
NIS Destroys Page
<p>
<script language="JavaScript">
c="More text that doesn't appear on the crashed page.";
c+=h3; // some more text from src=common_help.js
document.write(c);
if(window.SymError){alert("Error message for NIS Ad Blocking broken page goes here.")}
</script>
Below my name is a copy from View/Source of the above after the Norton Internet Security (NIS) Ad Blocking feature has finished with it. I am not trying to solve the problem with NIS; I simply want to issue an error message telling my users to turn off Ad Blocking if they want to use my page. I used to be able to do this with the following code:
if(window.SymError){alert("Error message for NIS Ad Blocking broken page goes here.")}
But it no longer works. Any ideas why?
Thanks, Peter (complete View/Source code below)
<html>
<head>
<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>
<script language="JavaScript">
</script>
<script src="common_help.js"></script>
<script language="JavaScript">
</script>
NIS Destroys Page
<p>
<script language="JavaScript">
c="More text that doesn't appear on the crashed page.";
c+=h3; // some more text from src=common_help.js
document.write(c);
if(window.SymError){alert("Error message for NIS Ad Blocking broken page goes here.")}
</script>
<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>