title: Passing parameters from website URL to iframe URL
body: <p>I try to take the parameters from website URL and passing to iframe URL.The website URL it looks like this: </p>
  
  <pre><code>www.example.com/en/open-account/Redirect?linkID=demo1064&amp;referral_id=0010962
  </code></pre>
  
  <p>The above URL has 2 parameters (linkID and referral_id).Maybe have more parameters (2-8 parameters).
  The iframe URL it looks like : </p>
  
  <pre><code>&lt;iframe frameborder="0" scrolling="no" class="frameboxlive" src="https://login.example.com/demo_signupiframe=1&amp;linkID=demo1064=&amp;referral_id=0010962=&amp;ref= www.example.com/en/open-account/Redirect?linkID=demo1064&amp;referral_id=0010962&amp;clang=en" width="700" height="800" align="center"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>The iframe URL it must be generated automatically and have these sections:</p>
  
  <ol>
  <li>The main URL: <a href="https://login.example.com/demo_signupiframe=1" rel="nofollow noreferrer">https://login.example.com/demo_signupiframe=1</a></li>
  <li>The parameters that come from the Website URL </li>
  <li>The parameter ref that include the website URL</li>
  <li>Finally, the parameter clang that includes the language. The language is in the website URL but not as a parameter.</li>
  </ol>
  
  <p>Any suggestions to do this with Javascript? Thanks in advance. </p>