How to get the Tag in which cursor is

Last post 12-30-2005, 6:01 AM by VikasJoshi. 0 replies.
Sort Posts: Previous Next
  •  12-30-2005, 6:01 AM 14289

    How to get the Tag in which cursor is

    Hi,

    Could it be possible that I can come to know in which Tag my cursor current position is and its hierarchy as well.

    Lets say in the Document  the Cursor position is between the Bold Tag then It would display me that <B> some where on the top of the editor or at the bottom of the Editor . And the document hierarchy as well. If this <B> tag is inside the <P> tag then it should display me the <P><B>. If it is in the SPAN tag then it should dispaly me as <P><B><SPAN> like this. I want to know the cursor position in which tag the Cursor is.

    And also I want to give some sort of message So that when the User is in a SPECIFIED tag then it should give some message to the User as well on perofrming some operation..

    Regards

    Vikas Joshi

    Vikas Joshi
View as RSS news feed in XML