Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Little help with shift-clicks please

Status
Not open for further replies.

AndyGroom

Programmer
May 23, 2001
972
GB
Hi,

For reasons too complicated to explain here, I have HTML documents containing links in the following format:

<A HREF=&quot;int: ... .com&quot;>

I display these pages in an IE window within a Visual Basic program. If users click the links, I intercept the clicks, strip the &quot;int:&quot; and point the browser to the link following.

My problem is that if users shift-click the links to open a new window, the click is not registered by VB (so I can't intercept it) but of course IE fails to show the target because it begins with &quot;int:&quot;.

So, my question is, can I add any Java to each page to strip off the &quot;int:&quot; ONLY if users shift-click the links?

Thanks,

- Andy.
 
Andy,

Have you considered adding a target attribute to your links and then in your HTML adding (these links will open on a new page)? It would be easy and addresses whatever need your clients have to see data in a new window.

Cheers,
[monkey] Edward [monkey]

Like Lovecraft? Know Photoshop? Got time for the Unspeakable?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top