I am trying to fire following onload event in an HTML webresource in dynamics CRM. But it seems not working without any exception thrown. I tried with both options but still no luck, any idea?
https://community.dynamics.com/crm/f/117/t/234028
<!DOCTYPE html>
<html> <head> <title>User Security Roles</title> <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script> <script src="../WebResources/new_xrmservicetoolkit" type="text/javascript"></script> <script type="text/javascript"> function getLoggedInUserRoles() { alert("Onload event triggered."); } </script> window.onload = call; </head> <body onLoad="getLoggedInUserRoles()"> </body> </html>
*This post is locked for comments