onLogout( )


Sets the function that runs when a member logs out.

Use the onLogout() function for code you want to run after a member logs out from your site.

Usually, you want to call the onLogout() function in the masterPage.js file in the code editor so that the onLogout() event handler runs no matter which page on your site a member uses to log out.

Notes:

  • The APIs in wix-members-frontend are only partially functional when previewing your site. View a published version of your site to see their complete functionality.

  • The APIs in wix-members-frontend can only be used once the page has loaded. Therefore, you must use them in code that is contained in or is called from the onReady() event handler or any element event handler.

Method Declaration
Copy
Request
This method does not take any parameters
Was this helpful?
Yes
No