title: Using iframe with a command button
body: <p>I have a page with an iframe that doesn't refresh properly.  I've been trying some of the suggestions found here:</p>
  
  <p><a href="https://stackoverflow.com/questions/2906582/how-to-create-an-html-button-that-acts-like-a-link">How to create an HTML button that acts like a link?</a></p>
  
  <p>On the left of my page I have collapsing folders and hyperlinks within the folders.  When a link is clicked the iframe changes to the hyperlink's page.</p>
  
  <p>The problem is that my iframe does not refresh under specific circumstances.</p>
  
  <p>Some of the links open an FAQ that is pre-filtered by the link.  For example, if this link is clicked FAQs related to approve, approver, or approvals are found:</p>
  
  <pre><code>&lt;li class=""&gt;&lt;a href="http://vuwppqws01.americas.sqpd.local/Finance/Training/FAQs.htm#0,approv" target="imgbox"&gt;FAQ: Approval &lt;/a&gt; &lt;/li&gt;
  </code></pre>
  
  <p>Unfortunately, on the left side of the page, after clicking an FAQ link and then clicking a different FAQ link it does not refresh the iframe.  I am forced to click a different link (like one that opens a pdf in the iframe) and then click one of the FAQ links for the list to refresh.</p>
  
  <p>So I tried using a command button:</p>
  
  <pre><code>&lt;form action="http://vuwppqws01.americas.sqpd.local/Finance/Training/FAQs.htm#0,approv" target="imgbox"&gt;
      &lt;li class=""&gt;&lt;input type="submit" value="FAQ-Approvers" /&gt;&lt;/li&gt;&lt;/form&gt;
  </code></pre>
  
  <p>It seems close to working because it does refresh but it ignores the part of the string that finds the FAQs that I'm looking for.  It ignores the #,0,approv at the end of the url.</p>
  
  <p>Is there a way to force the form command button to use the entire url and included the search parameters?  For example, it uses this:</p>
  
  <p><a href="http://vuwppqws01.americas.sqpd.local/Finance/Training/FAQs.htm" rel="nofollow noreferrer">http://vuwppqws01.americas.sqpd.local/Finance/Training/FAQs.htm</a></p>
  
  <p>but it ignores this:</p>
  
  <p><a href="http://vuwppqws01.americas.sqpd.local/Finance/Training/FAQs.htm#0,approv" rel="nofollow noreferrer">http://vuwppqws01.americas.sqpd.local/Finance/Training/FAQs.htm#0,approv</a></p>
  
  <p>Any suggestions?</p>