이벤트가 발생되었는지를 알려주는 기능을 중지키시기 위하여 이벤트로 부터 지정된 기능을 해제한다.

Scriptobject.detachEvent(sEvent,fpNotify)
인수/파라메터
sEvent
필수적인 요소이며, 표준 DHTML Events 중 하나를 지정하는 문자열이다.
fpNotify
필수적인 요소이며, attachEvent 메서드를 사용하여 이전에 설정된 기능을 지정하는 지시자이다.
반환값

반환값은 없다.

특기

attachEvent 메서드로 이벤트에 첨부된 기능은, ondetach 이벤트가 발생되면 페이지로부터 받는 통보를 중지시키기 위하여, 명시적으로 detachEvent 메서드를 호출하여야 한다.

PUBLIC:ATTACH 엘레멘트를 사용하여 이벤트에 첨부된 기능은 비헤이버가 엘레멘트로부터 제거되면 통보를 받는 것이 자동적으로 중지되므로, detachEvent 메서드를 호출할 필요는 없다.

적용
개체scriptIE
aa.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
acronymacronym.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
addressaddress.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
appletapplet.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
areaarea.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
bb.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
basebase.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
baseFontbaseFont.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
bgSoundbgSound.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
bigbig.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
blockQuoteblockQuote.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
bodybody.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
brbr.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
buttonbutton.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
captioncaption.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
centercenter.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
citecite.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
codecode.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
colcol.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
colGroupcolGroup.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
commentcomment.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
customcustom.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
dddd.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
deldel.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
dfndfn.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
dirdir.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
divdiv.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
dldl.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
documentdocument.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
dtdt.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
emem.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
embedembed.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
fieldSetfieldSet.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
fontfont.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
formform.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
frameframe.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
frameSetframeSet.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
headhead.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
hnhn.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
hrhr.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
htmlhtml.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
ii.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
iFrameiFrame.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
imgimg.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
buttonbutton.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
checkboxcheckbox.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
FileUploadFileUpload.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
hiddenhidden.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
imageimage.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
passwordpassword.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
radioradio.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
resetreset.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
submitsubmit.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
texttext.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
insins.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
kbdkbd.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
labellabel.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
legendlegend.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
lili.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
linklink.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
listinglisting.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
mapmap.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
marqueemarquee.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
menumenu.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
namespacenamespace.detachEvent(sEvent,fpNotify)IE5.5(win32,ce)
noBRnoBR.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
ObjectObject.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
olol.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
OptionOption.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
pp.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
plainTextplainText.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
prepre.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
qq.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
ss.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
sampsamp.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
scriptscript.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
selectselect.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
smallsmall.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
spanspan.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
strikestrike.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
strongstrong.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
subsub.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
supsup.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
tabletable.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
tBodytBody.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
tdtd.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
textAreatextArea.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
tFoottFoot.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
thth.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
tHeadtHead.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
titletitle.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
trtr.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
tttt.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
uu.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
ulul.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
varvar.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
windowwindow.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
xmpxmp.detachEvent(sEvent,fpNotify)IE5(win32,unix),IE5,5(ce)
참조
attachEvent behavior

method
detachEvent 메서드
detachEvent</b> 메서드
예제
이전페이지로페이지 맨위로페이지 맨아래로

attach, detach 효과 예제

비헤이버 첨부(attach) 비헤이버 제거(detach)

<STYLE>
UL.exp LI {behavior:url(../public/hilite.htc); line-height:1.3em;}
</STYLE>
<SCRIPT>
function detachBehavior(){
  document.styleSheets[1].rules[0].style.behavior= '';
}
function attachBehavior(){
  document.styleSheets[1].rules[0].style.behavior='url(../public/hilite.htc)';
}
</SCRIPT>

<UL class=exp>
<LI>Property</LI>	
<LI>Object</LI>
<LI>Method</LI>
<LI>Event</LI>
</UL>
<P style=margin-left:3em>비헤이버 첨부(<A href="javascript:attachBehavior()">attach</A>)
비헤이버 제거(<A href="javascript:detachBehavior()">detach</A>)</P>

method
detachEvent 메서드
detachEvent</b> 메서드
견본
이전페이지로페이지 맨위로페이지 맨아래로

method
detachEvent 메서드
견본예제
이전페이지로페이지 맨위로
최종 수정:
04/03/2025 22:19:37
KoXo Homepage
All right reserved
비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다.
오류가 나면 정상적 접속으로 시도해 보세요.
http://koxo.com/lang/js/method/detachEvent.html