1/************************************************************ 2 ** Clears a field 3 ** By: Joshua Sowin (fireandknowledge.org) 4 ** HTML: <input type="text" value="Search" name="search" 5 ** id="search" size="25" 6 ** onFocus="clearInput('search', 'Search')" 7 ** onBlur="clearInput('search', 'Search')" /> 8 ***********************************************************/ 9function clearInput(field_id, term_to_clear) { 10 11 // Clear input if it matches default value 12 if (document.getElementById(field_id).value == term_to_clear ) { 13 document.getElementById(field_id).value = ''; 14 } 15 16 // If the value is blank, then put back term 17 else if (document.getElementById(field_id).value == '' ) { 18 document.getElementById(field_id).value = term_to_clear; 19 } 20} // end clearSearch()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.