$.ajax is not working in safari why?

$.ajax is not working in safari why?

Why my below code not working in safari?
below code does not call my page method,
but its working on IE, as well as in FireFox
my method is calling but alert message does not show.
Why?

var options = {
          type: "POST",
          url: "Test.aspx/SendMessage",
          data: "{'toMailAddress':'" + val + "','rno':'" + rno+ "', 'nonrno':'" + nonrno+ "'}",
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function (response) {
            var val1 = response.d;
           
          
              alert(val1);
      ;
                      if (val1 == "1") {
                          // Below code is used to close the window, if mail has been sent to the user sucessfully.
                          var windowObj = window.self;
                          windowObj.opener = window.self;
                          windowObj.close();
                      }
          },
          error: function (result) {
            alert("Error in " + result);
          }
        };
        //Call the PageMethods
        $.ajax(options);