[Javascript] Apply padding via javascript

David Dorward david at dorward.me.uk
Sat Aug 19 17:07:58 CDT 2006


Abyss - Information wrote:
> what would be the best out of the following 2 options?
> 
>     document.all.MyBlock.style

Proprietary Microsoft junk of use only to IE 4[1] (which has no
significant market share).

>     document.layers['MyBlock'].style

Proprietary Netscape junk of use only to NS 4 (which has no significant
market share).

Try http://www.mozilla.org/docs/web-developer/upgrade_2.html#dom


[1] Other browsers support it, but they also support the standard way of
doing things.
-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is



More information about the Javascript mailing list