getLocState FunctionRetrieves the state of a specific location. Syntaxvalue = getLocState('location'.split(',')); Parameters
ReturnsReturns one of the following state values:
RemarksUse the getCurLocState function to retrieve the state of the current location. Examplestate = getLocState("April,0".split(',')); if((state != "DONE") && (state != "DONE100")) { spanStatus.innerText = "You must complete April Questions first."; spanAll.style.display = "none"; } else spanAll.style.display = ""; |