Javascript and IE6 ... maybe ???

G

Guest

Apologies as I am probably in the wrong thread but don't know where ... if
anyone can redirect it would be appreciated ...

When I create a webpage (html) in IE6 which may include some simple
Javascript, on loading via my FTP I discover the Source code has been altered
to include the following which sometimes alters the appearance of my webpage
.... grrr

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


Can anyone tell me where this code comes from and is there any way I can
alter of avoid this occuring ...

My script begins ... <SCRIPT LANGUAGE="Javascript">

Thanks in advance for any advice or assistance ...
 
V

Vanguard

Rob Smith said:
Apologies as I am probably in the wrong thread but don't know where ... if
anyone can redirect it would be appreciated ...

When I create a webpage (html) in IE6 which may include some simple
Javascript, on loading via my FTP I discover the Source code has been
altered
to include the following which sometimes alters the appearance of my
webpage
... grrr

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


Can anyone tell me where this code comes from and is there any way I can
alter of avoid this occuring ...

My script begins ... <SCRIPT LANGUAGE="Javascript">


FTP won't add anything to a transferred file, so the code is being added by
you or by your web host provider. If it is a free web hosting service, it
is likely that they will add their own HTML to every one of your web pages.
It is to insert an info string to identify that you are using their service
(i.e., it's an add to tell all your visitors whose free web services you
use) or to insert ads (because you agreed to have banners, frames, or other
content added to your web pages as a cost for using their free service).
Could be your web host provider is adding the code for some other reason so
ask them about it. If you are hosting the page on your own web server then
the code was already there or it got added by you or whatever publishing or
composing software that you use.

It is odd that this inserted content should affect your layout, however.
All of it is commented out; i.e., it lies between the "<!--" and "-->" tag
pair. However, the ending tag may be getting commented out which would mean
everything thereafter is part of a huge comment.
 

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

Top