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