Personally, I'd be using CSS and classes for this, or at minimum jQuery's .hide() and .show() -- life is too short to deal with cross-browser issues in raw JavaScript.
Can you post an SSCCE or fiddle that demonstrates the problem? Using a valid value for the property should work on all browsers.