use-client-context

Don't use Xrm.Page. Although Xrm.Page is deprecated, parent.Xrm.Page will continue to work with HTML web resources embedded in forms as this is the only way to access the form context from the HTML web resource. For a more comprehensive list of appropriate replacements for Xrm.Page functionality, go to Client API Deprecations.