I am using web browser control.
in this there are so many paragraphs.
i want to find out the position of mouse in a particular paragraph. that in which paragraph mouse is present???
please help me.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Afzaal Ahmad ZeeshanPosted Mar 11, 2015, 12:34 PM
But, if you were to use some sort of web development code, HTML and JavaScript, then you can find out which paragraph the user is currently having the mouse over. For example the following code,
$('p').mouseover(function () {
var id = $(this).attr('id');
}
Now the id would have the ID of the paragraph element that the user has moused over, when the mouse would move to a next paragraph, value would change and so on. Note that this would use the ID of the element, so always be ready for undefined if there is no ID found. This is an easy way of doing this; by using JavaScript inside the web document to be loaded.