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

download Behavior

Internet Development Index

Downloads a file and notifies a specified callback function when the download is complete.

Syntax

XML <Prefix: CustomTag ID=sID STYLE="behavior:url('#default#download')" />
HTML <ELEMENT STYLE="behavior:url('#default#download')" ID=sID>
Scriptingobject.style.behavior = "url('#default#download')"
object.addBehavior ("#default#download")

Possible Values

PrefixPrefix that associates the CustomTag with an XML namespace. This prefix is set using the XMLNS attribute of the HTML tag.
CustomTagUser-defined tag.
sIDString that specifies a unique identifier for the object.

Members Table

MethodDescription
startDownload Downloads the specified file.

Remarks

The members listed in the preceding table might not be accessible through scripting until the window.onload event fires. Waiting for this event to fire ensures that the page is completely loaded, that all behaviors have been applied to corresponding elements on the page, and that all the behavior's properties, methods, and events are available for scripting. To prevent a scripting error—which would indicate that the object does not support a particular member—do not use any of the behavior-defined members before the window.onload event fires.

The download behavior and the file specified in the startDownload method must exist on the same domain.

The download behavior is available as of Microsoft® Internet Explorer 5, in the Microsoft Win32® and Unix platforms.

Examples

This example uses the download behavior to download a page.

<HTML XMLNS:IE>
<SCRIPT>
function onDownloadDone(s) { alert (s); }
</SCRIPT>
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<P>Click <A HREF="javascript:oDownload.startDownload('download.htm',
onDownloadDone)">here</A> to begin downloading this page.
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.

This example demonstrates using the download behavior with Microsoft Visual Basic® Scripting Edition (VBScript).

<HTML XMLNS:IE>
<SCRIPT LANGUAGE="VBScript">
Function onDownloadDone(s)
MsgBox s
End Function
</SCRIPT>
<IE:DOWNLOAD ID="oDownload" STYLE="behavior:url(#default#download)" />
<button
onclick="vbscript:oDownload.startDownload 'downloadvb.htm', GetRef('onDownloadDone')">
Download File</button>

Applies To

A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, nextID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XML, XMP
利津县| 五寨县| 江阴市| 轮台县| 肥东县| 上高县| 鄄城县| 大洼县| 敦煌市| 肃北| 仁寿县| 英山县| 舞钢市| 健康| 青州市| 房产| 郴州市| 张掖市| 化州市| 达日县| 浦东新区| 安平县| 邓州市| 嘉峪关市| 和田县| 呼和浩特市| 灵台县| 白朗县| 尚义县| 阿鲁科尔沁旗| 南投县| 若尔盖县| 阿拉善左旗| 南通市| 深水埗区| 洛扎县| 徐水县| 千阳县| 德江县| 仁怀市| 沁源县|