[Javascript] Object Detection using Javascript.
Hakan M (Backbase)
hakan at backbase.com
Fri Sep 24 10:42:37 CDT 2004
When inspecting the window-object, I found the following methods:
window.releaseEvents
window.captureEvents
window.attachEvent
window.detachEvent
and the following object:
window.Event
I would start by experimenting with window.captureEvents.
One thing I've always hated about Opera is that they are trying to be
'IE-friendly', which in my experience mostly means that it fucks up on
IE-proprietary code rather than reporting an error.
Regards,
H
Hassan Schroeder wrote:
> Ben Crane wrote:
>
>> It wasn't on a website I found this. I ran a test
>> website locally using apache and using Opera 7, the
>> CSS tag overflow: scroll; didn't appear to work and
>> the data spilled out of the div tag.
>
>
> Mmm, just tried `overflow: scroll` on Opera 7.22/Win and it works.
> But I know a couple of years ago I was working on a project using
> a lot of CSS2, and basically *nothing* interesting worked in Opera.
> Between that and the poor JavaScript support, I just stopped even
> worrying about it.
>
> But since we're talking about Opera and I'm just fiddling with a
> little experiment -- anyone know how it handles the "load" event?
>
> I've got this currently to handle the difference between IE and Moz:
>
> if ( window.attachEvent )
> {
> window.attachEvent("onload",init);
> }
> else if ( window.addEventListener )
> {
> window.addEventListener("load",init,true);
> }
>
> :: but neither fires in Op7.22/Win, nor are any errors reported...
>
> ??
More information about the Javascript
mailing list