title: open new tab in jquery
body: <p>I need some help for href link open to new tab in jquery. I getting the following resuts for, if am click following link  Pay now i get the results from RtObject.ReturnVal.my results success get the following results displayed in new tab.
      $(function () {
              $("#OrderTable > tbody > tr > td> .paynow").click('click', function (Myevent) {</p>
  
  <pre><code>            Myevent.preventDefault();
  
              var passval = $(this).parents().siblings('td:eq(1)').text();
  
              $.ajax({
                  type: "POST",
                  datatype: "json",
                  async: true,
                  url: '/MyAccount/PayNow?OrderId=' + passval,
                  contentType: "application/json; charset=utf-8",
                  success: function (RtObject) {
                      //alert(RtObject.isError);
                      //alert(RtObject.CId);
                      if (!RtObject.isError) {
                          //alert(RtObject.isError);
                          if (RtObject.CId == 1) {
                              var newwin;
                              if (newwin &amp;&amp; !newwin.closed) {
                                  newwin.focus();
  
                              } else {
  
  
                                  $(this).target = "_blank";
  
                                  window.location = RtObject.ReturnVal;
  
  
                              }
                          }
                          else if (RtObject.CId == -1) {
                              jAlert(RtObject.Message, "Failure");
                          }
                      }
                  },
                  failure: function (response) {
                      jAlert("Cant go to payment process", "Failure");
                  }
              });
  
          });
  </code></pre>
  
  <p>please help me to solve this.</p>