object.style.visibility = "visible";
object.style.visibility = "hidden";
/*
the difference is that if you set display:none,
it hides the entire element, while visibility:hidden
means that the contents of the element will be
invisible, but the element stays in its original
position and size.
*/