<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Untitled Document</title><style>#bbs{Display:;}</style><Script>functionDisplayhideui () {varUI=document.getElementById ("BBS"); Ui.style.display="None";}functionDisplayshowui () {varUI=document.getElementById ("BBS"); Ui.style.display="";//If display is empty, it will work so that the block will wrap the space behind it.}functionVisibilityhideui () {varUI=document.getElementById ("BBS"); Ui.style.visibility="Hidden";}functionVisibilityshowui () {varUI=document.getElementById ("BBS"); Ui.style.visibility="Visible";}functionIfonclickui () {varUI=document.getElementById ("BBS"); if(Ui.style.display=="") {Ui.style.display="None"; } Else{Ui.style.display=""; }}</Script></Head><Body><inputtype= "button"value= "Hide UI"onclick= "Displayhideui ()"/><inputtype= "button"value= "Show UI"onclick= "Displayshowui ()"/><inputtype= "button"value= "If Display UI"onclick= "Ifonclickui ()"/><DivID= "BBS"Display="">Hide Content</Div></Body></HTML>
JavaScript shows an example of an if statement that hides a div