Hmm... I can't recreate the event you are talking about... I always get the focus with document.getElementById(commentid).focus(). Not sure... But could you delete the closing tag of "input"? There is no closing tag for "input" by the way (and never was).
PS: What browser are you using?
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
I think so. I am using FF3 here on Linux box. FF7 on Windows box doesn't have a problem either...
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
Hmm... Yes, seem to be what you are saying in Vista. Anyway, how about doing this...
<input id="cid" type="text" value="Start a conversation about this" onmousedown="startcomment('cid')" onmouseup="javascript:this.focus()">
Or may even try...
<input id="cid" type="text" value="Start a conversation about this" onmousedown="startcomment('cid');this.focus()">
Not sure about latter because I didn't test. The mouseup event may be the cause that the element loses its focus.
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239