[Greasemonkey] max-width textarea?
Nikolas Coukouma
lists at atrus.org
Fri Nov 4 17:41:44 EST 2005
Bill Donnelly wrote:
> DOM properties do not have dashes in them, so they are usually defined
> as lowercase and uppercase capitalized equivalents.
> So "max-width" as a CSS style property tag becomes DOM "maxWidth".
> This is usually (or always) consistent throughout.
>
> You can also use the Shell utility props() command to view properties and
> methods of DOM objects. See http://www.squarefree.com/shell/
> Use the bookmarklet version of the shell so commands will run in the
> opener's
> (opening/originating window) context. Very handy.
> [ example:
> props(document.forms['forumpostform'].elements['bericht'].style) ]
>
The DOM Inspector that comes with Firefox does something similar if you
select "Javascript Object" (hit the button to the left of "Object - DOM
Node"). It's not as general, but it's nice if you're already exploring
the page structure (and it shows values ;).
-Nikolas
More information about the Greasemonkey
mailing list