The following code works fine in Chrome, but not working in IE11. Is there anything wrong with this code? How to make it work in IE as well?
window.onbeforeunload = function () {
var newLine = "\r\n";
var message = "Line1";
message += newLine;
message += "Line2";
return message;
}
Thanks