Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.getElementById();

Status
Not open for further replies.

TommyB44

Technical User
Joined
Jun 16, 2005
Messages
76
Location
GB
Hi all

does anyone know why the "document.getElementById();" function is giving me problems, i'm pretty sure i've narrowed it down to the "document.getElementById();", using the same browser type on different computers the script shows on one but not on the other. Any ideas why ?, also would i be able to use something in place of it like "document.getAttribute();" ?. Any advise or reasoning would be good.

Thanks
 
Thought i'd do a follow up on this incase someone has the same
problems, i've since found out that this code was being added to my page code....

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

Middle

Code:
My Scripts and HTML

End

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

I'm not completely sure but i think it's a Norton thing.

oh well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top