Find the position of the cursor in an EditorPane

duydien
duydien used Ask the Experts™
on
is there a way to get the current position of the cursor in the (html) document being displayed by an EditorPane ???

thanks,

dn
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

function document_onmousemove()
{
window.text1.value="X="+window.event.clientX+" Y="+window.event.clientY


}

//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmousemove>
<!--
 document_onmousemove()
//-->
</SCRIPT>
</HEAD>
<INPUT type="text" id=text1 name=text1>
<BODY>

<P>&nbsp;</P>

</BODY>
</HTML>
Accept answer by bhagyesht
Bhagyesh Trivedi

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial