commedo's blogger

Tuesday, October 19, 2004

[PROGRAMMING TIPS] Browser-Compatibility while accessing HTML element using DOM

Please notice that MSIE accesses an HTML element using attribute ID, but Mozilla not. Mozilla uses attribute NAME instead of ID. So, you just simply write both attributes to make it work. See the following example:

<span id="var_name" name="var_name"></span></span>

0 Comments:

Post a Comment

<< Home