web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

onload function is getting erased

(0) ShareShare
ReportReport
Posted on by

Hi Team,

I am new to CRM community and wondering if I could get help on the issue that I'm facing.

I am currently working on MS CRM 2016 online instance.

As part of the requirement I am working on a html(webresource) page to modify it's title and the header.

When I tried to achieve this, there is an onload event present in body tag of the page which is automatically getting erased once I save and publish my changes.

i.e:- <body onload="function"> is getting converted to <body>

I tried to browse and upload the html page as well but it's still the same.

Can someone help me to get this resolved?

Note:- browser version is ie11

Thanks and Regard

Phani

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    You should call your onload function like this:

    <script type="text/javascript">

      function call() {

          alert("loaded");

      }

      window.onload = call;

    </script>

  • Community Member Profile Picture
    on at

    Hi Mohd,

    Thanks for the work around.

    I tried this and it's working..

    But the Page comes from CRM2015.. Jus wondering why onload function is getting erased in CRM2016.

    You mean.. CRM2016 not supporting onload in body tag??

    Thanks

    Phani

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans