Forum Moderators: open

Message Too Old, No Replies

SymRealOnLoad - what is this code for?

         

postUre

4:01 pm on Feb 5, 2005 (gmt 0)

10+ Year Member



I designed my site starting with a template that I have been modifying extensively.

I came across the following code which appears on the bottom of some of my ages after the </html> tag.

The author of the template isn't sure what it's for either so maybe I added it somewhere along the way by accident, not sure.

It seems if I remove it things continue to work fine.

If anyone has any idea what the code is for please let me know.

Thanks.

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

dom86

5:32 pm on Feb 5, 2005 (gmt 0)

10+ Year Member



And this from a previous WebmasterWorld Thread click here [webmasterworld.com]

The script has something to do with blocking.

postUre

5:45 pm on Feb 5, 2005 (gmt 0)

10+ Year Member



Thanks Dom!

Now I can check that off my "Things to Do List".