Tips for HTML: After a page is refreshed, the value of the form is not lost. [classic]

Source: Internet
Author: User
Sample Code:

<HTML>
<Head>
<Title> savehistory behavior application </title>
<Meta name = "save" content = "History">
</Head>
<Body>
Form Items with savehistory behavior: <br>
<Input style = "behavior: URL (# default # savehistory)"> <br>
General Form Items: <br>
<Input>
</Body>
</Html>

Note: <meta name = "save" content = "History"> This line of code is required.
Note

By default, savehistory allows objects to retain data in the browser history. The features, events, and methods are described as follows:
Features:
Xmldocument references the xml dom provided by the object.

Event:
The onload page is triggered on a persistent object when it is overloaded.
Onsave is triggered from a persistent object when you save, set a web page as a tag, or leave the page.

Method:
Getattribute gets the value of the specified attribute.
Removeattribute removes the specified attribute from the object.
Setattribute: set the value of the specified attribute.

For more information about ie default behaviors, visit msdn:
Http://msdn.microsoft.com/workshop/author/behaviors/reference/reference.asp

Related Article

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.