Jump to content

How to determine where a Link points in IE


apstanto
 Share

Recommended Posts

_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.

Link to comment
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!

Link to comment
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()
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...