title: Passing parameters to IFRAME in Dynamics CRM using javascript
body: <p>I've following code snippet to access <code>http://localhost:80/testsite</code> in IFRAME. It worked fine but as soon as I went to pass the fields value as parameter nothing get happen. I tried directly access the page from browser with parameters so page is behaving fine. I cannot figure out the things after spending a lot of time. I would like to seek your kind patience on this basic question. </p>
  
  <p><strong>code Snippet</strong></p>
  
  <pre><code>function forwardValues(){
      var ordername = Xrm.Page.getAttribute("name").getValue();
      var IFrame = Xrm.Page.ui.controls.get("IFRAME_sendvalue");
      var Url = IFrame.getSrc();
  
      var params = Url.substr(Url.indexOf("?"));
  
      var param1 = Url+"?ordername="+ordername;
  
      IFrame.setSrc(param1);
  
  }
  </code></pre>