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 Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: onload function is getting erased

    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

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: onload function is getting erased

    You should call your onload function like this:

    <script type="text/javascript">

      function call() {

          alert("loaded");

      }

      window.onload = call;

    </script>

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans