Wednesday, November 30, 2016

but if you want get new url by ajax:
$(document).ready(function () {
    $('a').on('click', function (e) {
        var $this = $(this);
        $.ajax({
            url: 'GetUrl',
            async: false,
            success: function (url) {
                $this.attr("href", url);
                $this.attr("target", "_blank");
            },
            error: function () {
                e.preventDefault();
            }
        });
    })

})

No comments:

Portugal Intel RTP E ANACOM intranet login

 https://stat.anacom.pt/pt-PT/SignIn?returnUrl=%2Fpt-PT%2F https://as.rtp.pt/adfs/ls/?client-request-id=3c4663cd-83ac-467d-bd5d-5777dcb8092c...