SP.UI namespace (sp.js)

Provides JavaScript objects for working with the user interface in Microsoft SharePoint Foundation. This namespace includes members to work with status messages, notifications, and dialogs.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013