[Greasemonkey] changing style with javascript

Vectorspace vectorspace at ntlworld.com
Tue Apr 4 19:07:23 EDT 2006


I have a div with an undefined height - so the div will assume whatever 
height is required for its content.

I use this to give it a height of 0:
document.getElementById("div_id").style.height="0"

I now want to undo that change, so the div will again be whatever size 
is required by its content. How do I do that? I tried style.height="" 
but that didn't work.


More information about the Greasemonkey mailing list