PageSourceSearch

https://microcontroller.com/js_formsub.js

js microcontroller.com collected 2026-10-02 10:25:15 UTC 439 bytes, 22 lines download raw bytes

1// submit form textarea on Enter
2function submitenter(myfield,e)
3{
4var keycode;
5if (window.event) keycode = window.event.keyCode;
6else if (e) keycode = e.which;
7else return true;
8
9if (keycode == 13)
10   {
11   myfield.form.submit();
12   return false;
13   }
14else
15   return true;
16}
17
18// clear form textarea default value on focus
19function clearText(thefield){
20if (thefield.defaultValue==thefield.value)
21thefield.value = ""
22}

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.