Thank you all for your tips but i'm not that experienced to use document.createTextRange, i'll try it out though. Here is why i need this kind of script:
I want the user to be able to insert his personal comments on an e-book (or something like it).i would prefare to avoid using add ons cause i 'll probably mess it up (not experienced).
So i'm using the WebBrowser component of visual studio 2005, which displays html with javascript properly, and can also add some extra hsndling like next page and so on(it is a desktop application).
What i need is, when a user (for example) right clicks on the text displayed on the browser there would be a pop-up form with a field where he could add some comments. And when a user wants to view his comments they should be placed at the position where he right clicked...Just like if it was a real book...
What i have found is only about how to get the mouse position in pixels.I could use this but it is quite patchwork...
Any ideas??Perhaps with c#??
Thanks allot!!!