Window. Location. href jump failure

Source: Internet
Author: User

Http://topic.csdn.net/u/20090206/10/68677365-dcea-4278-a77f-2f03c3cbf635.html

You can change window to document. I still don't know why.

 Window. Open (URL );

Http://hi.baidu.com/swordtomb/blog/item/7cec781e2675af134034177f.html

Sometimes, when performing JS redirection, we find thatCodeThe execution is completed, but the execution result can be displayed only after refresh. The original result is as follows:

Window. Location. href = 'page. asp ';

However, after the jump, the page does not change, as if the cache is not updated, You need to manually refresh to display the code execution results.

Later I found that I could change it like this:

Window. Location. Reload ('page. asp ');

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.