PDA

View Full Version : how can i raise End keypress event without pressing End key



gohelkiran
Mar 16th, 2007, 12:00 PM
HI

I am new to this forum.
I have created a editor wo use in place of textArea. I have created some custom buttons to add text to the content of the edxitor.

For example I clicked on [FIRST_NAME] label element it append some text to the editor content. After this the cursor moves to the start of the editor. So i want to move cursor at the end of the content.

The editor contains of an iframe tag and inside iframe tag there is a body tag.I can append editor data by innerHTML property of body tag. and than calling focus method of the iframe tag's contentWindow property which cause cursor move to the first charactor.

Thoughts? Opinions?

Thanks in advance.
:)