title: ms dynamics crm 2015 web resources html body onload function
body: <p>I added an easy navigation link at my custom entity. This link calls a web resource::</p>
  
  <pre><code>&lt;script&gt; function TweetOnLoad(){ var tweetWord = window.parent.Xrm.Page.data.entity.attributes.get("new_name").getValue(); var dynamicUrl ="http://localhost:3000/?tw="+tweetWord ; location.href = dynamicUrl; } &lt;/script&gt; 
  
  body onload="TweetOnLoad()"
  </code></pre>
  
  <p>But there is a problem: I couldn't call the <code>TweetOnLoad</code> function on body tag, because crm doesn't allow. How can I handle this problem? </p>