title: onclick function with iframes
body: <p>i have this in left frame and i want the result in other frame and i tried a lot but nothing work for me , any help with that?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function goToPage() {
          var page = document.getElementById('datepicker').value;
          window.location = "http://example.com";
      }
  &lt;/script&gt;
  
  &lt;p&gt;&lt;b&gt;&lt;font color="#FF0000" size="4"&gt;Date:&lt;/font&gt;&lt;/b&gt; 
  &lt;input type="text" id="datepicker" size="20" name="datepicker" value="Date Field" maxlength="8"&gt;&lt;input type="submit" value="submit" onclick="goToPage();" /&gt;&lt;/a&gt;&lt;/p&gt;
  </code></pre>