How to clear ajax requests from browser console
Yes we can clear ajax requests from mozilla firefox console tab .to clear ajax requests from console we use javascript function
function clearconsole() {
console.log(window.console);
if(window.console || window.console.firebug) {
console.clear();
}
}
when you call this function after your ajax request then all ajax request from console will be hide . call this function after ajax success , done or fail .
Example
$.ajax({
type:"POST",
url: form.attr('action'),
data:form.serialize(),
dataType: "json",
success: function(response){
if(response.msgtype=="success")
{
clearconsole();
}
});
Comments
Post a Comment