title: How to open Google Map in another tab with your coordinates in JavaScript?
body: <p>I have coordinates in a text box with a button. I am trying to take my coordinates from the text box and concatenate with the google maps. I do not want to show any map or something on my website. I just want to take my coordinates from the text box and open map in new tab with coordinates. My current logic:</p>
  
  <pre><code>var coordinates = $('#coordinates').val();
  var url = "https://www.google.com.sa/maps/"+ coordinates +",12.21z?hl=en"
  
  $("#map").on('click', function () {
          window.open(url, '_blank');
  });
  </code></pre>
  
  <p><strong>Modification:</strong>
  I want to show something like this with marker:</p>
  
  <p><a href="https://i.stack.imgur.com/vsEmt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vsEmt.png" alt="enter image description here"></a></p>
  
  <p>and It showing this:<a href="https://i.stack.imgur.com/qEWGW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qEWGW.png" alt="enter image description here"></a></p>