SP.RequestExecutor.attemptLogin Method (sp.requestexecutor.js)
Attempts to log in to the server.
Applies to: JavaScript | SharePoint Foundation 2013 | SharePoint Server 2013
SP.RequestExecutor.attemptLogin(String returnUrl, success, error)
Parameters
returnUrl
The URL to return if navigation away is needed.success
The function to call if the request succeeds without navigation away.error
The function to call if the request fails.