EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

onblur event

Fires when the object loses the input focus.

HTML 4.01 Specification, Section 18.2.3

 

Syntax

HTML Attribute <element onblur = "handler(event)">
Event Property object.onblur = handler;
attachEvent Method object.attachEvent("onblur", handler)
addEventListener Method object.addEventListener("blur", handler, useCapture)

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

Remarks

The HTMLLabelEvents2::onblur event fires on the original object before the HTMLLabelEvents2::onfocus or HTMLLabelEvents2::onclick event fires on the object that is receiving focus. Where applicable, the HTMLLabelEvents2::onblur event fires after the HTMLSelectElementEvents::onchange event.

Use the focus events to determine when to prepare an object to receive or validate input from the user.

As of Microsoft Internet Explorer 5, you must set the IHTMLElement2::tabIndex attribute of elements that expose the HTMLLabelEvents2::onblur event.

For Internet Explorer 5 and later, the HTMLLabelEvents2::onblur event is asynchronous.

Switches focus away from the object on which the event is fired.

To invoke this event, do one of the following:

  • Click the mouse on the document background or another control.
  • Use the keyboard to navigate from one object to the next.
  • Invoke the IHTMLElement2::blur method when an object has focus.
  • Switch focus to a different application or open a second window.

The pEvtObj parameter is required for the following interfaces:

See also

Reference
IHTMLElement2::blur
IHTMLElement2::focus
HTMLLabelEvents2::onfocusout

 

 

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft