Web development, let the user pipeline operation, not back back

Source: Internet
Author: User

In the project development many people will have such a demand, is want to operate to do too can not back, before on the internet to find a point, said there is no good way, I have to say there is JS, but the effect is not good, don't say even point two can let him fail, there are different browsers also can not be compatible, such as

Function Gogo () {    javascript:window.history.forward (1);} Gogo ();

This JS code added in HTML can be effective in IE and Google, but in Firefox is invalid (PS: effect is you point to the next one, point back, and immediately to the next one to go)




This paragraph is valid in Google (the other did not try), but in my IE is invalid, so it is not very good (PS effect: point to the next post, point back, address changed, so back to the previous one)


Personally feel the best way to use Ajax (in the same interface, to change the content, with JS Exchange) or go to the server (the cache is emptied, ask him to go through the process, all into the server to determine, whether to the previous one)

Web development, let the user pipeline operation, not back back

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.