<HTML>
<HEAD>
<META NAME="save" CONTENT="history">
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
</HEAD>
<BODY>
<INPUT class=saveHistory type=text id=oPersistInput>
<INPUT class=saveHistory type=text id=oPersistInput>
<INPUT class=saveHistory type=text id=oPersistInput>
</BODY>
</HTML>
<HEAD>
<META NAME="save" CONTENT="history">
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
</HEAD>
<BODY>
<INPUT class=saveHistory type=text id=oPersistInput>
<INPUT class=saveHistory type=text id=oPersistInput>
<INPUT class=saveHistory type=text id=oPersistInput>
</BODY>
</HTML>
解决方案 »
- 散分,庆祝大小3K的万能JQuery弹出层类库建成(欢迎指正错误)
- 讨论下DHTML这个概念
- jquery的疑问
- 急问:如何获取Dom元素的style内容-----100呀
- 如何捕获textare滚动条的向上滚动,向下滚动事件,不想用div模拟
- 谁有输入地名返回经纬度的代码
- 网页中嵌入iframe,怎样禁止鼠标在iframe中拖动嵌入的内容?
- js下拉列表和ul之间传值问题???
- JS如何判断是否已经引入某个css或是js?
- 谁做过流程自定义的项目?能否介绍一下?
- 我有一个上千个记录的全国省市县代码表,我如何能够在网页中实现方便的输入.
- 莫名其妙,为什么我的程序中明明有脚本错误,为什么IE发现不了呢?这个我调试程序带来极大不便!我该怎么办?才能使IE弹出错误警告???
好像正规的js和html,vbs都没有这种样式把
是CSS吗,孟子兄,可以解释一下吗
saveHistory Behavior--------------------------------------------------------------------------------Enables the object to persist data in the browser history.SyntaxXML N/A
HTML <ELEMENT STYLE="behavior:url('#default#saveHistory')" ID=sID>
Scripting object.style.behavior = "url('#default#saveHistory')"
object.addBehavior ("#default#saveHistory") Possible ValuessID String that specifies a unique identifier for the object.
MembersAllAttributesPropertiesMethodsEventsCollectionsBehaviors Description
getAttribute Retrieves the value of the specified attribute.
onload Fires from a persistent element when the page reloads.
onsave Fires from a persisted element when the Web page is saved or booked, or when the user navigates away from the page.
removeAttribute Removes the specified attribute from the object.
setAttribute Sets the value of the specified attribute.
XMLDocument Retrieves a reference to the XML Document Object Model (DOM) exposed by the object. * denotes an extension to the W3C DOM.
ResThe saveHistory behavior saves the current state of the page when the user navigates away from the page. When the user returns to the page by pressing the back or forward button, the values are restored.The saveHistory behavior persists only for the current session. When the user navigates away from the page containing the saveHistory behavior, the data is persisted in a UserData store. The saveHistory behavior uses one UserData store for the entire document. Thus, if two elements write the same attribute, the first is overwritten by the second. The UserData store is saved in an in-memory stream and is not saved to disk. Therefore, it is not available after the user closes Microsoft® Internet Explorer.For example, a page with several dynamically updated styles might save these updates using the onload and onsave event handlers. The style values can be saved as attributes when onsave fires, and restored when onload fires.To use the saveHistory behavior, use a META tag that identifies the type of persistence. <META NAME="save" CONTENT="history">The required STYLE can be set inline or in the document header, as follows: <STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>An ID is optional for saveHistory, but including one improves performance.The saveHistory behavior is available as of Microsoft® Internet Explorer 5, in the Microsoft® Win32® and Unix platforms.