最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

hasFocus Method

Internet Development Index

Retrieves the value indicating whether the object currently has focus.

Syntax

bActive = document.hasFocus()

Return Value

Boolean. Returns one of the following values:

trueDocument has focus.
falseDocument does not have focus.

Example

The following example shows how to use the hasFocus method to determine if the document has focus.

<HTML>
<HEAD>
<SCRIPT>
function fnCallDialog()
{
showModelessDialog("myDialogHasFocus.htm",window,"status:false;dialogWidth:300px;dialogHeight:300px");
}
// Function displays the message DIV when the main document has focus
function fnOpenMessage()
{
if (document.hasFocus())
{
oMessageDiv.style.display = "block";
}
}
function fnCloseMessage()
{
oMessageDiv.style.display = "none";
}
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE="button"
VALUE="Display Modeless Dialog" onclick="fnCallDialog()">
<P>
<SPAN STYLE= "color:darkmagenta;font-size:large;" onmouseout="fnCloseMessage();"
onmouseover="fnOpenMessage();">Mouse over this!</SPAN>
<div id="oMessageDiv" style="display:none;width:200;font-family:
arial;font-size:large; color: steelblue; border: 4 solid gold;">
A message for you!
</div>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this method.

Applies To

document
乐业县| 彭山县| 勃利县| 林口县| 浙江省| 明水县| 玛曲县| 尚义县| 潮州市| 宜都市| 厦门市| 广东省| 喀什市| 望都县| 五大连池市| 织金县| 汪清县| 文山县| 河西区| 绍兴市| 兴国县| 丘北县| 运城市| 三都| 和顺县| 绍兴县| 松溪县| 平山县| 广德县| 大竹县| 银川市| 赞皇县| 夹江县| 蚌埠市| 白银市| 榆树市| 巧家县| 英山县| 长沙县| 柞水县| 郎溪县|