August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onBlur="command"
The onBlur event handler specifies when the focus has been removed from a frame.
In Listing 7.277, the onBlur event handler is used to change the color of the upper frame when the focus is set on it.
<html>
<title> Example of onBlur event handler of the Frame object</title>
<script language = "JavaScript">
<!-- Hide
function change(){
frames[0].onBlur=new Function("document.bgColor='green'")
}
// End Hide --->
</script>
<frameset rows="50%,*" onLoad=change()>
<frame name="topFrame" src="top.html">
<frame name="bottomFrame" src=bottom.html>
</frameset>
</html>
|
Read now
Unlock full access