title: Javascript detect two forms open in the same browser
body: <p>Now I'm doing some Laravel project. can we prevent multiple open the same forms in the browser? the case is like this :</p>
  <ul>
  <li>Let say that I open form call &quot;Data form 1&quot;. this page is still open</li>
  <li>then, when I open another tab and open the same form &quot;Data Form 1&quot; again</li>
  </ul>
  <p>do I able to prevent the second tab for this. Or write a pop-up warning message for close tab action using javascript? maybe on the pop-up warning message when the user press close tab will run this code <code>window.close()</code></p>
  <p>Please help. I don't have any clue about this.</p>