有人遇到过在按返回键返回到上一个页面时,却全部丢失了form中的数据的问题吗?奇怪了.我从来没有遇到过!!!

jsidiot 2002-09-27 11:29:16
盼解决
请教各位
我在一个一个form中输入了输入了很多资料
却全部不见了
如何解决
...全文
65 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
jsidiot 2002-09-28
  • 打赏
  • 举报
回复
我再推一下那
快点解决把
无爱大叔 2002-09-28
  • 打赏
  • 举报
回复
.saveHistory {behavior:url(#default#savehistory);}
是CSS吗,孟子兄,可以解释一下吗
jsidiot 2002-09-28
  • 打赏
  • 举报
回复
请问孟子用的是xml嘛?
好像正规的js和html,vbs都没有这种样式把
cleo 2002-09-28
  • 打赏
  • 举报
回复
我也遇到过,原因不详,
浏览器问题吧!换一个版本浏览器就不会这样了。
qiushuiwuhen 2002-09-28
  • 打赏
  • 举报
回复
Web Workshop | DHTML, HTML & CSS
saveHistory Behavior

--------------------------------------------------------------------------------

Enables the object to persist data in the browser history.

Syntax

XML N/A
HTML <ELEMENT STYLE="behavior:url('#default#saveHistory')" ID=sID>
Scripting object.style.behavior = "url('#default#saveHistory')"
object.addBehavior ("#default#saveHistory")

Possible Values

sID String that specifies a unique identifier for the object.


Members

AllAttributesPropertiesMethodsEventsCollectionsBehaviors 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 bookmarked, 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.
Remarks

The 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.
孟子E章 2002-09-27
  • 打赏
  • 举报
回复
<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>
代码转载自:https://pan.quark.cn/s/9da49e2b99f5 Webview2是由微软开发的一种前沿的Web技术整合方案,其设计目的是使开发者能够在桌面应用程序无缝嵌入Web内容,进而借助Chromium引擎所拥有的卓越性能。一个尤为关的更新版本——“webview2支持win7的最后一个版本,V109.0.1518.140,X86+X64”——具有显著的重要性,因为它为Windows 7操作系统提供了延续支持,即便微软已经终止了对Win7的官方维护。Webview2的基石是Chromium引擎,该引擎构成了Google Chrome浏览器的基础,因此它确保了与最新Web标准的兼容,涵盖了HTML5、CSS3以及JavaScript等。版本号V109.0.1518.140代表着该版本内含了一系列的修正和改进,旨在保障在Win7环境下的稳定运行。这些修正包括性能的提升、安全性的增强以及对最新Web API的兼容。对于仍在使用Windows 7的用户群体而言,这是一个至关重要的更新,因为微软已于2020年1月终止了Windows 7的主流支持,不再提供安全更新和技术支持。尽管如此,众多企业和个人用户依然在使用这个操作系统,因此Webview2的这一版本为他们提供了一种途径,使其在不升级操作系统的情况下,依然能够体验更为现代的Web功能。该压缩文件内含了X86(32位)和X64(64位)两种架构的安装程序,确保了不同系统架构的用户都能找到适配的版本进行安装。安装流程设计得相当简便,用户只需遵循安装向导的指示即可顺利完成。安装完成后,开发者能够将Webview2整合进他们的应用程序,为用户提供一个内嵌的、安全的Web浏览环境,而无需调用外...

87,994

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧