[thelist] Javascript problem

Peter-Paul Koch gassinaumasis at hotmail.com
Tue Feb 19 06:36:00 CST 2002


> >> <http://www.mark.ac/help/bottom.html>
> >>
> >> The problem I've got is that if I include a DOCTYPE, it doesn't work in
>IE
> >> -- all I get is a Javascript alert stating invalid procedure call or
> >> argument.
> >
> > Yep. Use document.documentElement instead of document.body . As far as I
> > know this is only necessary in IE6, but you've also seen this problem in
> > IE5Mac?
>
>I have only seen it in IE5 / Mac. I've found the solution thanks to some
>feedback, which was that the top and left declarations need to be suffixed
>with "px" in IE5+, NS6+ and Opera.

OK, so if you declare a doctype values *must* have units. Makes sense.

ppk

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com




More information about the thelist mailing list