最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

onsave Event

Internet Development Index

Fires from a persisted element when the Web page is saved or bookmarked, or when the user navigates away from the page.

Syntax

Event propertyobject.onsave = handlerJScript only
object.onsave = GetRef("handler")Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = object EVENT = onsave> Internet Explorer only

Event Information

BubblesNo
CancelsYes
To invoke
  • Save the Web page.
  • Bookmark the Web page.
  • Navigate to another page.
Default action Initiates any action associated with this script.

Available Properties

Available Properties

Example

This example shows how to use the onsave event for a persistence behavior.

<HTML>
<HEAD>
<META NAME="save" CONTENT="favorite">
<STYLE>
.saveFavorite {behavior:url(#default#savefavorite);}
</STYLE>
<SCRIPT>
function fnSaveInput(){
alert("The onsave event fired.");
oPersistInput.setAttribute("sPersistValue",oPersistInput.value);
}
function fnLoadInput(){
oPersistInput.value=oPersistInput.getAttribute("sPersistValue");
}
</SCRIPT>
</HEAD>
<BODY>
<INPUT class=saveFavorite onsave="fnSaveInput()" onload="fnLoadInput()"
type=text id=oPersistInput>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this event.

Applies To

saveFavorite, saveHistory, saveSnapshot
SHOW| 乐清市| 凉城县| 高台县| 南康市| 阿荣旗| 睢宁县| 海宁市| 朔州市| 静乐县| 新巴尔虎左旗| 延庆县| 宣汉县| 佛教| 丹东市| 乌海市| 水富县| 称多县| 宝兴县| 平阳县| 岑溪市| 依安县| 定襄县| 郎溪县| 普定县| 泾川县| 绥芬河市| 惠水县| 黑龙江省| 泸州市| 腾冲县| 冕宁县| 宜春市| 镇赉县| 平乡县| 余江县| 南靖县| 红桥区| 满洲里市| 凌源市| 兰坪|