Question : launch new tab and refresh original page codeigniter
Answered by : uninterested-unicorn-nt5u5vpjxbmz
<form action="newpage.php" method="post" target="_blank" onsubmit="javascript: setTimeout(function(){location.reload();}, 1000);return true;"> Next Availiable ID: <input type="text" name="id" value="<?= $nextid ?>"><br/> Your Name: <input type="text" name="thename" maxlength="64"><br/> <button type="submit">Go!</button>
</form>
Source : https://stackoverflow.com/questions/36125778/how-to-refresh-the-main-page-after-the-form-opens-a-new-window | Last Update : Sun, 21 Jun 20