Originally posted by ben oliver:
Bear, can you make it straight ?
Omit the "javascript:" prefix. That pseudo-protocol is only necessary when substituting script for a URL (something I think is sloppy and imprecise and never do).
in my example, does "this" refer to this text input field value ?
In that example, yes.
I don't know what DOM element is, please use idiot language when you deal with idiots.
The DOM is the Document Object Model built by the elements in your HTML. In your example, the input markup results in an input DOM element.