Comment

ivo van der Wijk

node.style.cssText = "..." usually does the trick for me

Replies

Peter Bengtsson

Really? I'll give that a try.

tjallen

Hooray! Thank-you.

In my case, involving styles of a div element, this worked only after I append the div to the body node, but yes!

state-machine

Yes, this is a really short solution! Thank you all for not giving up on this topic. By the way - it's not possible to code a lot of JavaScript for HTML using the DOM only, is it?

Frank

Nice !!! Thx

sanjeev

thnx...it worked!!!