Bhubaneswar, Odisha, India
+91-8328865778
support@softchief.com

Open an HTML web resource in a dialog pop-up box

Open an HTML web resource in a dialog pop-up box

Here is a sample code to Open an HTML web resource in a dialog.

JavaScript
var pageInput = {
    pageType: "webresource",
    webresourceName: "new_mywrsc.htm"
};
var navigationOptions = {
    target: 2,
    width: 500, // value specified in pixel
    height: 400, // value specified in pixel
    position: 1
};
Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
    function success() {
            // Run code on success
    },
    function error() {
            // Handle errors
    }
);
JavaScript

Hope it helps.