Xrm.Page.getControl("WebResource_TestCustomCombo").getObject().contentWindow.window.mytest(); is also not working
Is there any alternate way to call the HTML Web Resource function from Form JavaScript in Dynamics 365.
Below is the code but getting the error Object doesn't support property or method 'mytest'. Please suggest.
Form Onload JavaScript
function test() {
Xrm.Page.getControl("WebResource_TestCustomCombo").getObject().contentWindow.window.mytest();
}
HTML Web Resource
<html>
<head>
<meta charset="utf-8">
</head>
<body>
 
 
<script type="text/javascript">
function mytest() {
alert('Hello');
}
</script>
</body>
</html>
Best Regards
Srikanth Reddy