title: Refresh page when button is clicked
body: <p>I have a time clock button which swaps out time stamping the database. it really serves no purpose cause the button takes you to a payroll API I am using to manage the clockin and out functions. I am leaving the button there just so when users are on their dashboard they can see how long they have been clocked in and to be reminded if they are clocked in or out. </p>
  
  <p>If you click the button it opens in new page. so if you click the button again with your refreshing the page it does not open the link again. </p>
  
  <p>How can I refresh this page on click so I can avoid this problem?</p>
  
  <pre><code>&lt;div id="clock"&gt;
  &lt;? if( is_null($row) ): ?&gt;
      &lt;a href="timeclock/index.php" target="blank"  /&gt;&lt;button class="btn" id="clock_in"&gt;Clock in&lt;/button&gt;&lt;/a&gt;
  &lt;? else: ?&gt;
      &lt;label&gt;Last Clocked in&lt;/label&gt;
      &lt;input type="text" readonly="readonly" id="last_clocked" value="&lt;?= $row['in']?&gt;"&gt;&lt;br&gt;
     &lt;a href="timeclock/index.php" target="blank" /&gt;&lt;button class="btn" id="clock_out"&gt;Clock Out&lt;/button&gt;&lt;/a&gt;
  &lt;? endif; ?&gt;
  &lt;/div&gt;
  </code></pre>