This is a weird Mozilla/Firefox problem I've encountered which doesn't happen in IE at all and need to be able to undo in Firefox/Mozilla.
The problem is that whenever a text input box gets focus, it automatically selects all text within it. Even if text is generated into that box while it has focus, the text is selected.
document.selection.empty();
will clear the box of all text (when it works).
document.selection.clear();
will also clear the box of all text (when it works).
How do you deselect text in an < INPUT > text box in Mozilla/Firefox when it comes into focus?
Bookmarks