WixComments
The WixComments
element is a customizable widget for site visitors to leave comments and feedback. Learn more.
Additional information about this section
Store values associated with an object
- customClassList
Note: This standard element property is not relevant for this WixComments element.
- locked
Indicates whether the WixComments element is locked.
- deleted
Indicates if an element was temporarily deleted from the DOM. Use the restore function to restore the deleted element.
- rendered
Indicates if an element is currently in the DOM structure.
- global
Indicates if an element appears on all pages or only on the current page.
- id
Gets the element's ID.
- parent
Gets the element's parent element.
- type
Gets the element's type.
Perform actions on an object
- closeCommentBoxes( )
Closes all comment boxes on the WixComments element.
- lock( )
Locks the WixComments element.
- onCommentCountChange( )
Adds an event handler that runs when a comment is added or removed from the WixComments element.
- onCommentCreate( )
Adds an event handler that runs when a new comment is created in the WixComments element.
- openNearestCommentBox( )
Opens the comment box closest to the element that called the function.
- setResourceId( )
Retrieves a comment thread with a unique resource ID, or creates one if it doesn't exist.
- unlock( )
Unlocks the WixComments element.
- delete( )
Deletes an element from the DOM. This is a temporary deletion. Use restore to restore the deleted element. SEO crawlers cannot find content in an element whose ...
- onMouseIn( )
Adds an event handler that runs when the pointer is moved onto the element. You can also define an event handler using the Properties and Events panel.
- onMouseOut( )
Adds an event handler that runs when the pointer is moved off of the element. You can also define an event handler using the Properties and Events panel.
- restore( )
Restores a deleted element to the DOM.
- scrollTo( )
Scrolls the page to the top of the element using an animation.
- onViewportEnter( )
Adds an event handler that runs when an element is displayed in the viewable part of the current window.
- onViewportLeave( )
Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window.