昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期三, 十月 14, 2009

IE class attribute

For IE dom, to get the value of class attribute, the correct way is:

objTag.className

But not objTag.class

This is different from objTagA.href. 

IE also supports GetAttribute method. But this method has difference between different version of IE. (versions below IE7 are not supported.)

--
Feng

没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.