We have an html file that we use in an iframe in a form. We were running Dynamics CRM 2011 and the links in the iframes would open in a new window. After upgrading to Dynamics 365 2016, the links now redirect within the iframe. Is there a way to get the links to open in a new window like before?
The current html and javascript is below. I've changed the company name to "XXXX".
<html><head><script type="text/javascript">
debugger;
function OnFormLoad()
{
if (window.parent.Xrm.Page.getAttribute('gm_apporganizationid').getValue() != null)
{
var Org = window.parent.Xrm.Page.getAttribute('gm_apporganizationid').getValue();
var Guid=Org[0].id;
//var appFrame = window.parent.Xrm.Page.ui.controls.get("appFrame");
var appFrame = document.getElementById("appFrame");
appFrame.src="/XXXX/userdefined/areas.aspx?oId=" + Guid + "&oType=1&security=0&pagemode=iframe&tabSet=gm_account_gm_application&rof=false";
}
}
window.onload =OnFormLoad;
</script><meta charset="utf-8"><base target="_blank"></head><body><iframe id="appFrame" style="width: 100%; height: 93.85%;" target="_blank"></iframe></body></html>







