Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 684205 of Document.hasFocus()

  • 리비전 슬러그: DOM/document.hasFocus
  • 리비전 제목: document.hasFocus
  • 리비전 아이디: 684205
  • 제작일시:
  • 만든이: khalid32
  • 현재 리비전인가요? 아니오
  • 댓글
태그: 

리비전 내용

{{ ApiRef() }}

요약

문서내에 포커스가 위치하고 있다면 hasFocus 속성은 true를 반환합니다.

{{ Note("본 속성은 개발중인 HTML 5 명세의 일부입니다.") }}

구문

focused = document.hasFocus();

예제

명세

Focus management

 

{{ languages( { "en": "en/DOM/element.hasFocus", "es": "es/DOM/element.hasFocus", "pl": "pl/DOM/document.hasFocus" } ) }}

리비전 소스

<p>{{ ApiRef() }}</p>
<h3 id=".EC.9A.94.EC.95.BD" name=".EC.9A.94.EC.95.BD">요약</h3>
<p>문서내에 포커스가 위치하고 있다면 <code>hasFocus</code> 속성은 <code>true</code>를 반환합니다.</p>
<p>{{ Note("본 속성은 개발중인 HTML 5 명세의 일부입니다.") }}</p>
<h3 id=".EA.B5.AC.EB.AC.B8" name=".EA.B5.AC.EB.AC.B8">구문</h3>
<pre class="eval">
focused = document.hasFocus();
</pre>
<h3 id=".EC.98.88.EC.A0.9C" name=".EC.98.88.EC.A0.9C">예제</h3>
<h3 id=".EB.AA.85.EC.84.B8" name=".EB.AA.85.EC.84.B8">명세</h3>
<p><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/#focus-management">Focus management </a></p>
<div class="noinclude">
 &nbsp;</div>
<p>{{ languages( { "en": "en/DOM/element.hasFocus", "es": "es/DOM/element.hasFocus", "pl": "pl/DOM/document.hasFocus" } ) }}</p>
현재 리비전 복원