[Greasemonkey] max-width textarea?
Bill Donnelly
donnelly at snowcrest.net
Fri Nov 4 14:29:02 EST 2005
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) ]
--
I often enjoy Casting my Pearls Before Swine,
if only to trip them up, piss them off, and/or
totally freak them out.
-----------------------
I didn't ask to be Overlord of Balloon Doggies --
the Balloon Doggies demanded it!
More information about the Greasemonkey
mailing list