How to refresh webpage after submitting contact from in HTML?

$('#form_contact').submit(function(e){

    e.preventDefault();

    var data = $(this).serialize();

    $.ajax({

        url: 'mail.php?form_contact',
        data: data,
        type: 'post',
        dataType: 'json',
        success: function(r)
        {

            location.reload();

        }
    });
});

Leave a Comment