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:
    http://www.codeproject.com/Questions/407140/location-href-is-not-working-in-IE-and-Chrome


    Hope this will help you.

    Regards,
    Shashikant Gurav
    shashikantgurav22@gmail.com

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

    window.location.href


    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