Using getStyle
Using getStyle
Clicking the button will use Dom's getStyle
method to get the background color of the red element and pass it to the setStyle
method, which will set the blue element's background to the same color.
yui_2.7.0b.zip( 4,431 k)