Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ho can I get a Link to use myTarget ?
Message
From
18/07/2003 15:07:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Ho can I get a Link to use myTarget ?
Miscellaneous
Thread ID:
00811624
Message ID:
00811624
Views:
46
I'm using VFP 7.0
How do I get a link to use myTarget?
local loIE, loDoc, loLink, loIE2, luTarget
loIE2 = createobject('InternetExplorer.Application')
loIE2.visible = .f.
* luTarget = loIE2                     << doesn't work
* luTarget = loIE2.HWND                << doesn't work
luTarget = loIE2.FULLNAME              << doesn't work

loIE = createobject('InternetExplorer.Application')
loIE.Navigate( 'mySite' )
loDoc = loIE.Document
for each loLink in loDoc.Links
  if loLink.href = 'myLink'
    loLink.target = luTarget          << I can't get anything to work
    loLink.click
    exit
  endif
endfor
More specifically, I'm looking to click on the link and open it in another window that's invisible.
Bill Morris
Next
Reply
Map
View

Click here to load this message in the networking platform