How to add new tab : It wont go to a new tab is my code wrong? please help ASAP!!!aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    function getWaterMeterList() {
        // alert("ON");
        var BillingPeriod = $('#BillingPeriod').val();
        $.ajax({
            url: '/DataEntryWater/WaterMeterAlphaListReport',
            type: 'POST',
            data: { 'BillingPeriod': BillingPeriod },
            dataType: 'json',
            success: function (a) {
                $(location).attr('href', a)
                a.preventDefault();
            },
            error: function (err) {
            }
        });
    }