###### 16.9.7.4.3 JavaScript code when DropLinkType=Button

[DropJS]
function doSection(id){
var but = document.getElementById("bu" + id)
var idiv = document.getElementById(id)
if (idiv.style.display=="none") {
idiv.style.display=""
but.innerHTML="<$DropButtonCloseLabel>"
} else {
idiv.style.display="none"
but.innerHTML="<$DropButtonOpenLabel>"
}
return false;
}
function noSection(id){
var but = document.getElementById("bu" + id)
var idiv = document.getElementById(id)
if (idiv.style.display=="") {
idiv.style.display="none"
but.innerHTML="<$DropButtonOpenLabel>"
}
}

Previous Topic: 16.9.7.4.2 JavaScript code when DropLinkType=Icon

Next Topic: 16.9.7.4.4 JavaScript code when DropLinkType=Text

Parent Topic: 16.9.7.4 Inspecting the JavaScript code for drop-down sections

Sibling Topics:

16.9.7.4.1 JavaScript code when UseCompositeDropJS=Yes

16.9.7.4.2 JavaScript code when DropLinkType=Icon

16.9.7.4.4 JavaScript code when DropLinkType=Text

Table of Contents • Index