User283571144 posted
Hi mazharul007,
According to your description, I suggest you could use jquery to achieve your requirement.
You could use window.parent.location to check the page is inside the iframe. If inside the iframe, you could set the master page's menu visible attribute by using jquery selector.
More details, you could refer to below codes:
$(document).ready(function () {
if (window.location !== window.parent.location) {
// The page is in an iframe , set menu invisible
$("#mainMenu").css('visibility', 'hidden');
// do the same thing
//$("#mainMenu").css('display', 'none');
} else {
// The page is not in an iframe, it will show the menu
}
});
Note: “mainMenu” is your menu ID in master page.
Result:

Best Regards,
Brando