Questions about page refresh after History.back ()

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

I have been history.back () after the original page automatically refresh the problem, such as the record in a form to delete operations, submitted after writing a sentence:

Response.Write "<script>alert (' delete success! '); History.back () </Script> "

Then return to find the original record is also displayed on the page, but the database has been deleted, that is, I need to return the page can automatically refresh to achieve the effect of synchronization with the database.

Exhausted all methods, the problem is still, although you can use the 3rd party page to do a jump, but also did not have the effect of Java pop-up window, ah ~ knowledge of not home (in fact, I am to Java and this is a layman). Today I stumbled on the internet and found a solution, quack, very simple. Just add the location.reload () problem to the back. The code is as follows:

Response.Write "<script>alert (' delete success! '); History.back () location.reload ();</script> "

This article originates from Shuro's Blog (http://www.shuro.cn), reproduced please indicate the source, thank you!

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.