Search...
hidden
Indicates if the chatbox is visible or hidden.
Description
If hidden
is true
, the chatbox is not displayed on the page.
If hidden
is false
, the chatbox is displayed on the page.
To set the hidden
property on the chatbox, use the chatbox's
hide()
or show()
functions.
If you select Hidden on load in the chatbox's Properties panel
in the Editor, the hidden
property is set to true
when the page loads.
Type:
booleanRead Only, default value is false
Was this helpful?
Get the chatbox's hidden status
Copy Code
1let isHidden = $w("#myChatbox").hidden; // false
Toggle an element's hidden state
Copy Code
1if( $w("#myChatbox").hidden ) {2 $w("#myChatbox").show();3}4else {5 $w("#myChatbox").hide();6}