why aspnet adds these scripts?

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
 
M

Martin Honnen

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

dee

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top