openNearestCommentBox( )


Opens the comment box closest to the element that called the function.

The openNearestCommentBox() function opens the comment box that is closest to the element that called the function.

A comment box is the the input area where visitors can write a comment.

There can be up to two comment boxes on the WixComments element. They are displayed at the top and bottom of the element.

Method Declaration
Copy
Method Parameters
commentBoxOptionsCommentBoxOptions

Effect options for opening the comment box.

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?