最新国产好看的视频,伊人天堂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
金堂县| 平邑县| 富源县| 晋州市| 锦屏县| 永登县| 麻栗坡县| 平顶山市| 通州区| 大港区| 聊城市| 维西| 扶绥县| 临沭县| 达日县| 丹东市| 于都县| 沾益县| 镇安县| 徐水县| 浦北县| 苍溪县| 札达县| 策勒县| 镇原县| 益阳市| 湘阴县| 肥东县| 温泉县| 调兵山市| 西乌珠穆沁旗| 尼勒克县| 民丰县| 措勤县| 象山县| 吴旗县| 和硕县| 扬中市| 什邡市| 九台市| 枝江市|