[Greasemonkey] Cursor not showing in input field

Jeremy Dunck jdunck at gmail.com
Wed Sep 21 23:40:28 EDT 2005

On 9/21/05, WHITEMARE2 <whitemare2 at delphiforums.com> wrote:
> I created an input field like this:
> var myinput2 = document.createElement("input");
> myinput2.setAttribute('type', 'text');
> myinput2.setAttribute('name', 'rows');
> myinput2.setAttribute('value', '2');
> myinput2.setAttribute('maxlength', '3');

I assume you're then appending that input to the document.  Are you
appending within a form?

> I can see the input field, and if I double click it, I can type in the field.  But I can't just single click the field with my mouse, then type.  The cursor is not visible in the text box.  Is there a way to make the cursor display in the text box?

On this page:
with the attached script, on FF 1.5 and GM 0.6.2, I do not see that behavior.

Any more info to share?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.user.js
Type: application/x-javascript
Size: 244 bytes
Desc: not available
Url : http://mozdev.org/pipermail/greasemonkey/attachments/20050921/204c1521/debug.user.js

More information about the Greasemonkey mailing list