title: Visualforce page opening in new page, i want it to open in new tab? Can anyone assist
body: <p>How can I open new tab as opposed to a new window using visualforce<br>
  Here is my code, Please advice how/what should I change/add here</p>
  
  <p></p>
  
  <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"&gt;
  &lt;/script&gt;
  
      &lt;apex:form &gt;
          &lt;apex:outputPanel id="myPanel"&gt;
              &lt;h1&gt;Status: &lt;/h1&gt;
                {!responseMessage}
          &lt;/apex:outputPanel&gt;
      &lt;/apex:form&gt;  
  
   &lt;script&gt;
      jQuery(document).ready(function() 
          {
              console.log('----'+{!redirectToLead}); 
              if({!redirectToLead})
             //sforce.one.navigateToURL("/{!leadId}"'_self');
             window.location.href = "/{!leadId}";
  
          }); 
  &lt;/script&gt;
  
  &lt;/apex:page&gt;
  </code></pre>