why aspnet adds these scripts?

  • Thread starter Thread starter dee
  • Start date Start date
D

dee

Hi,
I have a aspnet1 that has Default.htm for its home page. When I view the
source for this page in IE brower I see scripts that I haven't added?
Here is that 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>



***** my html page *****



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


What is this for and how can I get rid of it?

Thank.
Dee
 
dee wrote:

I have a aspnet1 that has Default.htm for its home page. When I view the
source for this page in IE brower I see scripts that I haven't added?
Here is that 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>

That is not ASP.NET adding those scripts, that is some attempt at popup
blocking inserted by some tool of Symantec probably. Check whether on
the client where IE runs and you view the source some proxy or filter runs.
 
Thanks Martin
This is actually happening when i run the page in my local server from
within Visual Studio. Thanks for the hint. I haven't yet been able to
determine what part of Norton is causing this.
Cant get to the link under your signature!
Dee
 
Back
Top