Share via


SP.Ribbon.PageState.PageStateHandler.EnableSaveBeforeNavigate(enable) Method

Applies to: SharePoint Foundation 2010

Enables or disables the save operation before navigating away from the page.

SP.Ribbon.PageState.PageStateHandler.EnableSaveBeforeNavigate(enable);

Parameters

enable

Type: Boolean

true to perform a save operation before navigating away from the page; otherwise, false.

Remarks

If the enable parameter is true, this method attaches a handler to the beforeunload event to save the changes made to the page that is being edited; otherwise, this method removes the handler from the window event.

Applies To

SP.Ribbon.PageState.PageStateHandler Class

See Also

Reference

SP.Ribbon.PageState.PageStateHandler Events

SP.Ribbon.PageState.PageStateHandler Fields

SP.Ribbon.PageState.PageStateHandler Methods

SP.Ribbon.PageState Namespace