I write a java script function in that i call Ajax to open window in same tab .when i am setting async:false it works in Mozilla but doesn't get work in chrome and IE.To work in Chrome and IE we need to set async:true but after setting async:true it doesn't work in Mozilla. the following code i am using
example.
var t = document.getElementById('toolt').title = 'test';
t = 'test'
function loadEditWindow() {
window.setTimeout(function () {
$.ajax({
async: false,
success: function (MSG) {
window.open('URL', "_self");
}
return false;
},
error: function (MSG) {
alert("Error");
}
});
}, 2000);
return false;
}