<script>
                            $("#contact_form").on("submit", function(){
	                            $.ajax({
		                            url: './handler.php',
		                            method: 'post',
		                            dataType: 'html',
		                            data: $(this).serialize(),
		                            success: function(data){
			                            $('#result').html(data);
		                            }
	                            });
	                            return false;
                            });
                        </script>