<html>
<head>
<script>
function selectAll(){
var checklist = ("selected");
if(("controlAll").checked)
{
for(var i=0;i<;i++)
{
checklist[i].checked = 1;
}
}else{
for(var j=0;j<;j++)
{
checklist[j].checked = 0;
}
}
}
</script>
</head>
<body>
<form>
<input onclick="selectAll()" type="checkbox" name="controlAll" style="controlAll" />Select all<br>
1:<input type="checkbox" name="selected" value="1"/><br>
2:<input type="checkbox" name="selected" value="2"/><br>
3:<input type="checkbox" name="selected" value="3"/><br>
4:<input type="checkbox" name="selected" value="4"/><br>
5:<input type="checkbox" name="selected" value="5"/><br>
6:<input type="checkbox" name="selected" value="6"/><br>
</form>
<p>
js key event description<br>
onClick event<br>
Mouse click events are one of the most common events when the user clicks a mouse button. At the same time, the event handler or code specified by onClick will be called to execute. <br>
Document description<br>
Line 11 uses the onClick event to pop up the warning prompt dialog box. <br>
onChange Event<br>
The onChange event is an event that occurs when the content of the text box changes. <br>
Document description<br>
Line 11 uses the onChange event, and a warning prompt dialog box pops up when the content of the text box changes. <br>
onSelect event<br>
The onSelect event is an event that occurs when the content of the text box is selected. <br>
Document description<br>
Line 11 uses the onSelect event, and when the content in the text box is selected, the result displayed in the dialog box is warned. <br>
onFocus event<br>
The onFocus event is an event that occurs when the cursor falls into the text box. <br>
Document description<br>
Line 12 uses the Onfocus event. When the second text box is selected with the mouse, the Onfocus event will be automatically triggered and a dialog box will pop up. <br>
onLload event<br>
The onload event is an event that occurs when the current web page is displayed. <br>
Document description<br>
Line 9 uses the OnLoad event, which automatically opens a warning box when opening a web page. <br>
onUnload event<br>
The onUnload event is an event that occurs when the current web page is closed. <br>
Document Description <br>
Line 9 uses the onUnload event, which automatically opens a warning box when closing the web page. <br>
onBlur Event<br>
The onBlur event is an event that occurs when the cursor leaves the text box. <br>
15 <br>
Document description<br>
Line 12 uses the onBlur event. When you leave the second text box with the mouse, the onBlur event will be automatically triggered and a dialog box will pop up. <br>
onMouseover event<br>
The onMouseover event is an event that occurs when the mouse moves over the page element. , ,<br>
Document description<br>
Line 10 uses the onMouseover event. When the mouse points to scroll text, the onMouseover event will be automatically triggered. <br>
onMouseout event<br>
The onmouseout event refers to an event that occurs when the mouse leaves above the page element. Document description<br>
Line 10 uses the onmouseout event. When the mouse leaves the scrolling text, the onmouseout event is automatically triggered. <br>
onDbclick event<br>
When the mouse double-clicks the mouse button, the ondbclick event is generated. At the same time, the event handler or code specified by ondbclick will be called to execute. <br>
Document description<br>
Line 11 uses the ondbclick event to pop up the warning prompt dialog box. <br>
</p>
</body>
</html>