You must Sign In to post a response.
  • Category: ASP.NET

    Location Attribute not working in Google chrome

    I'm trying to redirect page from one to another by using Jquery. IE 11 its working fine but Chrome not working.

    $(location).attr('href', url);
  • #764245
    Hi G.Renganathan,

    write "; return false;" immediately after javascript method call or inside javascript method at last and check.

    You may also refer following URL:

    Hope this will help you.

    Shashikant Gurav

  • #764332
    1. You can use window for simple redirection of your page.


    2. If you want to do it in JQuery you can try use assingn also.

    location.assign('Your Web url');

    By Nathan
    Direction is important than speed

  • Sign In to post your comments