I am trying to redirect to a page after successful ajax. Here is my code:

```
$.ajax({
    type: "GET",
    url: "blogdelete.jsp",
    data: val,
    async: true,
    cache: false,
    success: function (msg) {
        window.location.href="hodlogin.jsp";
    }
});

```

This is not working. Any suggestions??

Thanks in advance!