Sign in to follow this  
Followers 0
apstanto

How to determine where a Link points in IE

6 posts in this topic

_IELinkClickByText works fine, but I want to know where the link points, with out necessarily clicking on it. When I hold my mouse over the link, it's url shows up on the information bar at the bottom of IE. I want to programmatically get that link. Anybody know how? Thanks.

Share this post


Link to post
Share on other sites



Thanks for the heads up! I didn't realize that's what $oLink.href did.

So I'll have to loop through all the links on the page until I get to my desired one. I have the text on the link, so is there documentation to read or an easy way to get the text? Something like $oLink.name? Thanks!

Share this post


Link to post
Share on other sites

Thanks for the heads up! I didn't realize that's what $oLink.href did.

So I'll have to loop through all the links on the page until I get to my desired one. I have the text on the link, so is there documentation to read or an easy way to get the text? Something like $oLink.name? Thanks!

Does the link have an ID? you could do _IEGetObjByID()

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

I don't see an ID when looking at the HTML code. I might be looking in the wrong place or for the wrong thing, though.

I could use _IEGetObjByName for that matter. But I'd have to fish through a bunch of frames, which I have not had great luck with doing. I know the text of the link, so I just want an easy way to get the url. Clicking on it works great! I want to know where it will take me "If" I click on it.

Share this post


Link to post
Share on other sites

personally i try to avoid the frames whenever possible. often you can look at the src property of the frame and navigate directly to that as your page, then no frame. do you have a url for the page you're trying to work with?


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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