
|
|
|||||
Attributes for
<BODY ...>onFocusonBlur
There is some difference in how browsers trigger the
If the page is framed, MSIE and Netscape are relatively consistent with each other. They both trigger
<SCRIPT TYPE="text/javascript">
<!--
function setbg(color)
{
document.bgColor=color;
document.body.style.backgroundColor=color;
}
//-->
</SCRIPT>
Then you could call this script with
<BODY onFocus="setbg('red')" onBlur="setbg('white')">
That gives us the events on this page.
The body loses the focus when objects inside the body get the focus. So, for example, Copyright Idocs, Inc. Written by Miko Sullivan |
|||||
| About the NetVisits, Inc Network | Advertise Developer Tutorials hosted by HostGator. Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy. |