Sign in to follow this  
Followers 0
Mercury049

Selection Location Possible?

2 posts in this topic

I'm having a lot of trouble with a 3rd party page that I'm trying to view links in. It's all javascript and asp.

Anyways, When I do a CTRL F on the page and find the link I'm looking for, it automatically highlights that selection. Is there a way to find out the X,Y coords of that selection? Say the top left corner of it?

Thanks

Share this post


Link to post
Share on other sites



I'm having a lot of trouble with a 3rd party page that I'm trying to view links in. It's all javascript and asp.

Anyways, When I do a CTRL F on the page and find the link I'm looking for, it automatically highlights that selection. Is there a way to find out the X,Y coords of that selection? Say the top left corner of it?

Thanks

From a quick Google on it: In the IE DOM, the Document object has a .selection object, which in turn has a .TextRange collection of TextRange objects, that at last have properties like .htmlText and .text.

Drilling down to it is more than I have time to play with right now.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0