Navigator 2.0, Internet Explorer 3.0
checkbox.defaultChecked
defaultChecked is a read-only Boolean property of the Checkbox object. It is true if the Checkbox is initially checked--i.e., if the CHECKED attribute appears in the Checkbox's HTML <INPUT> tag. If this tag does not appear, then the Checkbox is initially unchecked, and defaultChecked is false.
You can use the defaultChecked property to reset a Checkbox back to its default state. You might do this when the user selects a Reset button in a form, for example. You can reset a Checkbox with the following function:
function resetCheckbox(checkbox) { if (checkbox.defaultChecked) checkbox.checked =index.html true; else checkbox.checked = false; }
file: /Techref/language/JAVA/SCRIPT/definitive/refp_35.htm, 4KB, , updated: 2019/10/14 15:00, local time: 2024/11/23 07:20,
3.136.19.124:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/language/JAVA/SCRIPT/definitive/refp_35.htm"> [Chapter 21] Reference: Checkbox.defaultChecked</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.