Sets the method that runs when a member logs out.
Use onLogout()
for code you want to run after a member logs out
from a site.
Usually, you want to call onLogout()
in the masterPage.js file in the
code editor so that onLogout()
runs no matter which
page on a site a member uses to log out.
Notes:
The frontend Members APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality.
The frontend Member APIs can only be used once the page has loaded. Therefore,
you must use them in code that's contained in or is called from the
onReady()
or any element event.
handler(): void
Method name or expression to run when a member logs out.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.