ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÏ°í, ´Ù¿î·Îµå°¡ ¿Ï·áµÇ¸é ƯÁ¤ ¾Ë¸²±â´ÉÀ» Á¦°øÇÑ´Ù.
script | object.style.behavior="url('#default#download')"; | |
---|---|---|
object.addBehavior('#default#download'); | ||
HTML | <ELEMENT style="behavior:url('#default#download')" id=idVal> | |
XML | <prefix:CustomTag id=idVal style="behavior:url('#default#download')" /> |
prefix | CustomTag°ú ¿¬°üµÈ XML namespace Á¢µÎ¾îÀÌ´Ù. HTML ű׿¡¼ xmlns ¾ÖÆ®¸®ºäÆ®·Î ¼³Á¤ÇÑ´Ù. |
CustomTag | ÀÛ¼ºÀÚ°¡ Á¤ÀÇÇÏ¿© »ç¿ëÇϴ ű×ÀÌ´Ù. |
idVal | °³Ã¼À» ´ëÇ¥ÇÏ´Â À¯ÀÏÇÑ ÀνÄÀÚ ¹®ÀÚ¿ÀÌ´Ù. |
window.onload À̺¥Æ®°¡ ¹ß»ýµÇ±â Àü¿¡´Â ½ºÅ©¸³Æ®·Î ¾Æ·¡ ¼Ó¼ºÀ̳ª À̺¥Æ®¿¡ Á¢¼ÓÇÒ ¼ö ¾ø´Ù. ¹®¼°¡ ¿ÏÀüÈ÷ ·ÎµùµÇ°í, onload À̺¥Æ®°¡ ¹ß»ýµÇ¸é ÇØ´ç ÆäÀÌÁöÀÇ ºñÇìÀ̹ö°¡ Àû¿ëµÇ°í, ¸ðµç ¼Ó¼º, ¸Þ¼µå, À̺¥Æ®¸¦ ½ºÅ©¸³Æ®·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù. À̺¥Æ® ¹ß»ýÀü¿¡ ½ºÆ®¸³Æ®·Î °³Ã¼¿¡ Á¢¼ÓÀ» ½ÃµµÇÏ¸é ½ºÆ®¸³Æ®´Â ±× ¼Ó¼ºÀÌ °³Ã¼¿¡¼ Áö¿øµÇÁö ¾Ê´Â´Ù´Â ¿À·ù¸¦ ¹ß»ý½ÃŲ´Ù.
download ºñÇìÀ̹ö¿Í startDownload ¸Þ¼µå¿¡ ÁöÁ¤µÈ ÆÄÀϵéÀÌ °°Àº µµ¸ÞÀο¡ ÀÖ¾î¾ßÇÑ´Ù.
download ºñÇìÀ̹ö´Â IE5ÀÇ Win32¿Í Unix Ç÷§Æ®Æû¿¡¼ Áö¿øµÈ´Ù.
¸Þ¼µå | ¼³¸í |
---|---|
startDownload | ÁöÁ¤µÈ ÆÄÀÏÀÇ ´Ù¿î·Îµå¸¦ ½ÃÀÛÇÑ´Ù. |
°³Ã¼ | IE |
---|---|
<ELEMENT style="behavior:url('#default#download')" id=idVal> | IE5(win32,unix) |
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 |
À¥ÆäÀÌÁö¸¦ download ºñÇìÀ̹ö¸¦ ÀÌ¿ëÇÏ¿© ´Ù¿î·ÎµåÇÑ´Ù.
<HTML XMLNS:IE> <SCRIPT> function onDownloadDone(doc) { alert (doc); } </SCRIPT> <IE:Download id="oDownload" style="behavior:url(#default#download)" /> <P><A href="javascript:oDownload.startDownload('exp/wmask.html',onDownloadDone)">´Ù¿î·Îµå ½ÃÀÛ</A>.
VBScript·Î À¥ÆäÀÌÁö¸¦ download ºñÇìÀ̹ö¸¦ ÀÌ¿ëÇÏ¿© ´Ù¿î·ÎµåÇÑ´Ù.
<HTML XMLNS:IE> <SCRIPT LANGUAGE="VBScript"> Function onDownloadDone(doc) MsgBox doc End Function </SCRIPT> <IE:DOWNLOAD id="oDownload" style="behavior:url(#default#download)" /> <BUTTON onclick="vbscript:oDownload.startDownload 'exp/wmask.html', GetRef('onDownloadDone')">´Ù¿î·Îµå ½ÃÀÛ</BUTTON>