View Full Version : Find caret position in editable iframe

10-18-2005, 08:26 AM
I'm using an iframe as a wysiwyg editor (designMode='On') and I need to have a way that I can get the caret position while editing the document. Initially I thought that selectionStart would work in an editable document just as it does in a textarea element, but it appears that selectionStart is not a property of an iframe or of it's contentWindow. Does anyone have an idea of how to go about solving this for Firefox and IE?

10-18-2005, 08:57 PM
any code? (it could help)