This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > FrontPage Programming > December 2005 > Why does Frontpage 2003 add javascript code when opening an html f
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Why does Frontpage 2003 add javascript code when opening an html f
|
|
| Gerald 2005-12-24, 6:52 pm |
| When loading a file, Frontpage adds the following code after the TITLE
<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>
Fontpage also adds the following code after the closing </HTML> tag
<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>
Other similar FrontPage 2003 installations do not do this, why?
| |
| Steve Easton 2005-12-24, 6:53 pm |
| Are you loading this from your host / live web??
If so, it's your host adding it, not FrontPage.
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
"Gerald" <Gerald@discussions.microsoft.com> wrote in message
news:96B679E1-7F61-448F-A6B7-2995CDD2A75A@microsoft.com...
> When loading a file, Frontpage adds the following code after the TITLE
>
> <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>
>
> Fontpage also adds the following code after the closing </HTML> tag
>
> <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>
>
> Other similar FrontPage 2003 installations do not do this, why?
>
| |
| Stefan B Rusynko 2005-12-25, 6:19 pm |
| It is actually added to every page by Norton Internet security
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________
"Steve Easton" <admin@95isalive.com> wrote in message news:Op6FacNCGHA.2644@TK2MSFTNGP09.phx.gbl...
| Are you loading this from your host / live web??
| If so, it's your host adding it, not FrontPage.
|
|
| --
| Steve Easton
| Microsoft MVP FrontPage
| 95isalive
| This site is best viewed............
| .......................with a computer
|
|
|
|
| "Gerald" <Gerald@discussions.microsoft.com> wrote in message
| news:96B679E1-7F61-448F-A6B7-2995CDD2A75A@microsoft.com...
| > When loading a file, Frontpage adds the following code after the TITLE
| >
| > <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>
| >
| > Fontpage also adds the following code after the closing </HTML> tag
| >
| > <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>
| >
| > Other similar FrontPage 2003 installations do not do this, why?
| >
|
|
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|