Hi,
I shared it in my blog. CRM 2013 Open Entity Form in new Window by JavaScript
Also here is the code. It works all the browsers
function OpenRecords(Record_Id, Logical_Name_Of_Entity) {
var reletivePath = "main.aspx?etn=" + Logical_Name_Of_Entity;
reletivePath = reletivePath + "&pagetype=entityrecord&id=";
var height = 1300; // Height of the Record Page.
var width = 900; // Width of the Record Page.
var windowName = "_blank";
var serverUrl = Xrm.Page.context.getServerUrl();
var nAgt = navigator.userAgent;
if (serverUrl != null && serverUrl != ""
&&
Record_Id.replace("{", "").replace("}", "") != null) {
serverUrl = serverUrl + "/"+ reletivePath;
serverUrl = serverUrl + Record_Id.replace("{", "").replace("}", "");
if (nAgt.indexOf("Firefox") != -1) {
window.open(serverUrl);
} else {
window.openStdWin(serverUrl,
null,
height,
width,
"titlebar=yes, resizable=yes");
}
}
}
If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın
My blog