Edit: The basic question is the code below opens a popup window when the parent screen isn’t maximised. When the parent screen is maximised only a new tab is opened. I would like it to behave like a popup window only. Thanks. I’m running the code against Safari and Google Chrome.
An extract of the code is shown below (the part I am having the issue with):
   <form target="popUp" name="RngFrm" action="MapPHPCode3.php" method="post" onsubmit="popup(this);">
    <input name="lat" placeholder="Latitude" value="Latitude"></input>
    <input name="lng" placeholder="Longitude" value="Longitude"></input>
    <input name="rad2" placeholder="Radius" value="Radius"></input>
   <input type="submit">
   </form>
    <script>
    function popup(form) {
    window.open('', 'formpopup','menubar=yes,scrollbars=yes,resizable=yes,width=40,height=50');
    form.target = 'formpopup'; 
    };
      </script>
 
     
    