JavaScript Tips (third episode)

Source: Internet
Author: User
Tip III How to use history and forward on a Web page

Let's take a look at a syntax that lets you browse through different files, and we're going to talk about back () and forward (), if you have a link in your own file that returns to the previous link file in your own file, and the Netscope browser provides The button function is not the same. For example, in my file, a normal link is connected to something that we think will be the source of the file, called the link back, and the return button in Netscape's browser returns to the previous link in your history, so different JavaScript can provide similar The function of the back button in Netscape, try this link, you can feel the return, this syntax looks like this:

Above you can also write directly to History.go (-1) and History.go (1)



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.