Page 1 of 1

Can you do this.style.text-decoration?

Posted: Sun Apr 28, 2002 9:20 pm
by MattSharp
I tried this and it just keeps giving me ; expecting errors? IS this even possible?

Posted: Mon Apr 29, 2002 1:32 am
by nahp
when you want to access a css property from javascript you have to replace the hyphen from the property name by an uppercase letter:

text-decoration : textDecoration
background-color: backgroundColor
...

it s just because hyphen ain t a valid character for variable names

Posted: Mon Apr 29, 2002 11:06 am
by sam
You would do that something like this:

Code: Select all

this.style="text-decoration: strike;"
Cheers Moe

Re: Can you do this.style.text-decoration?

Posted: Tue Apr 21, 2009 2:45 am
by margueratesullivan
What kind of knot can I use to tie a garden decoration to a 7 ft tall metal framed arch?
I cant reach the top with a ladder. So, could I throw a piece of twin over the arch, tie the dangling chime and do some sort of knot that would tight, pulling the decoration up so that it's not dangling to low? I was thinking of a slip knot.
___________________
external keyword tool ~ keyworddiscovery.com ~ keycompete.com ~ compete.com ~ webmasterworld.com