[removed] not working correctly in IE7/8

后端 未结 4 1270
天命终不由人
天命终不由人 2020-12-21 05:16

I have a div which has an a inside it. I want to click on the div and follow the same url as the a. This is the HTML:

4条回答
  •  抹茶落季
    2020-12-21 05:42

    Although the topic is old, it's not obsolete. I just had the same problem.

    window.location = href;
    

    works fine, if you put another command after that.

    window.location = href;
    return false;
    

    This works for me and redirects with the correct URL. Hope this helps others with the same problem.

提交回复
热议问题