수

event.relatedTarget

· 2017-09-10 (일) 00:09:44 · 2066

event.relatedTarget


설명 : 이벤트와 관련된 다른 DOM 요소 (있는 경우).


for mouseout는 입력되는 요소를 나타냅니다. for mouseover는 종료되는 요소를 나타냅니다.


예:

앵커의 마우스 아웃시 입력되는 요소 유형을 알려줍니다.


$( "a" ).mouseout(function( event ) {

  alert( event.relatedTarget.nodeName ); // "DIV"

});

|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
jQuery
[jQuery]
17-09-09 조회 1,882
jQuery 17-09-09 조회 2,726
jQuery 17-09-09 조회 4,104
PHP 17-09-08 조회 6,159
기타 17-09-08 조회 2,447
기타 17-09-08 조회 2,268
기타 17-09-08 조회 2,576
jQuery 17-09-07 조회 2,171
jQuery 17-09-07 조회 1,888
jQuery 17-09-07 조회 2,667
jQuery 17-09-06 조회 2,357
jQuery
[jQuery]
17-09-06 조회 2,126
jQuery 17-09-06 조회 2,418
jQuery
[jQuery]
17-09-05 조회 1,804
jQuery
[jQuery]
17-09-05 조회 2,092
jQuery
[jQuery]
17-09-05 조회 1,789
jQuery
[jQuery]
17-09-02 조회 1,722
jQuery 17-09-02 조회 2,029
jQuery 17-09-02 조회 2,129
jQuery 17-09-01 조회 2,126
jQuery 17-09-01 조회 2,268
jQuery 17-09-01 조회 1,997
jQuery 17-08-31 조회 2,377
jQuery 17-08-31 조회 2,483
jQuery 17-08-31 조회 1,914
PHP 17-08-31 조회 3,323
jQuery 17-08-29 조회 1,910
jQuery 17-08-29 조회 2,092
jQuery 17-08-29 조회 2,177
jQuery 17-08-27 조회 2,054