Login | |
|
 |
RE: HTA hyperlink delay on click - 11/18/2008 5:56:19 AM
|
|
 |
|
| |
dm_4ever
Posts: 2728
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
If you're just trying to launch an IE instance to a specific site and have no requirements to interact with it from the HTA.... Sub OpenIE(strURL) Dim objShell : Set objShell = CreateObject("WScript.Shell") objShell.Run "iexplore.exe " & strURL, 1, False End Sub
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: HTA hyperlink delay on click - 11/18/2008 5:57:38 AM
|
|
 |
|
| |
TNO
Posts: 1402
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
I'm confused more about what you are doing. Less humor and more details please. Does this sub exist in the webpage you are navigating to? are you dynamically adding a reference or what?
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: HTA hyperlink delay on click - 11/18/2008 9:59:09 AM
|
|
 |
|
| |
TNO
Posts: 1402
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
Launching the url through the Run dialog will launch the default browser (or add a tab to the existing instance). The downside is that you will then have to iterate through all the active applications to find the one you just started (looking for document.title perhaps) and then using GetObject() to bind a reference to it.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
|
|