I wrote the below code in a html web resource and calling this webresource on form in MSCRM online 2016.
code:
<html><head>
<script src="ClientGlobalContext.js.aspx"></script>
<script src="new_ jquery_1.9.1.min" type="text/javascript"></script>
<script type="text/javascript">
function unloading()
{
document.body.style.cursor = 'wait';
}
</script>
<meta charset="utf-8"></head>
<body onbeforeunload="unloading();" onunload="unloading();"></body></html>
Problem: when I am saving this code body in the code is replacing by <body><br></body>
Why body is not working?
when I put a input button in body..the above code is working..but only when I use onbeforeunload only my code is not working??
Is there any thing that I am missing??