Re: Syntax to access div by ID.

On 11/10/2012 13:05, Gautam Sathe wrote:
[...]
> <div id="testDiv">...</div>
>
> In a script section he was trying to set its display property to 'none'
> and he had coded it like:
>
> testDiv.style.display = 'none';
[...]

I seem to remember this was something IE did first, and other browsers 
have adopted the behavior for compatibility reasons. It may actually now 
be standardised somewhere in HTML5/Living Standard.

P
-- 
Patrick H. Lauke
______________________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]

www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com | http://flickr.com/photos/redux/
______________________________________________________________
twitter: @patrick_h_lauke | skype: patrick_h_lauke
______________________________________________________________

Received on Friday, 12 October 2012 13:22:28 UTC