title: How to pass value from parent to its iframe using javascript
body: <p>Hi i want to pass the value by calling the parent link page value to its iframe link page 
  sample code is</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;
          &lt;/title&gt;
          &lt;script&gt;
              function sendvalue(v){
                  alert(v);
              }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form id="f"&gt;
              &lt;input type="button" value="123" onclick="sendvalue(this.value)"&gt;
          &lt;/form&gt;
          &lt;iframe id="frame1" src="a.html" width="500px;"&gt;&lt;/iframe&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>a.html</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;
          &lt;/title&gt;
          &lt;script&gt;
  
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h3&gt; Frame&lt;/h3&gt;
          &lt;form id="myform"&gt;
              Req value &lt;input type="text" name="a" id="a"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>when i call sendvalue function then the value should pass to iframe link page in form for input field.
  how this can be achieved.</p>