Hello all,
I am trying to create a website that is compatible for the most common browsers however smegging i.e. as always is causing a fuss about a particular function that I have on my page, the function starts:
Code:
function mouseDown( name )
{
document.getElementById( name ).addEvents(
{
and I.e. complains about
:
document.getElementById( name ).addEvents( reports it as error on line 9. the element ID that i pass in is the name of a "<div>" element. is there an IE friendly version for this?
the element is as follows:
Code:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 17 Aug 2009 18:01:06 UTC
Message: Object doesn't support this property or method
Line: 9
Char: 2
Code: 0
URI: result.js
Many thanks in advance.