title: Can I determine the current state of the display CSS style for a given element using JS
body: <p>I wish to write a simple javascript function that toggles the visibility of a given element. Problem is, immediately after the page load, the initial style is unknown (at least to me). How can I determine what the current value of a given element's display style element is?</p>