Here's an example: I'm using the HTA just as a host for a page within an
iframe, so I'm passing the
querystring parameter along to that page. The hosted page gets the HTA
privs.
Tim
'**************************************
<html>
<head>
<title>Edit Associations</title>
<hta:application icon="images/folder.ico"
id="Tracker"
applicationName="Tracker"
singleInstance="yes"
showInTaskbar="yes"
borderStyle="normal"
maximizebutton="no"
SYSMENU="yes"
selection="yes"
/>
<script type="text/javascript">
function Init()
{
var qs = window.location.search.substring(1) + "";
if(qs.length>0)
{
//pass the querystring through to the iframe page
document.getElementById("frmEdit").src = "edit.asp?" + qs;
window.resizeTo(800, 750);
}else{
alert("No Id was passed!");
window.close();
}
}
</script>
</head>
<body scroll="no" style="margin:0px" onload="Init();">
<iframe id="frmEdit" width="100%" height="100%"
frameborder="no" border="0"
marginheight="0" marginwidth="0"
application="yes"
src="blank.html">
</iframe>
</body>
</html>
'****************************************
"Joe Fawcett" <joefawcett@xxxxxx> wrote in message
news:eOd7oR80JHA.2656@xxxxxx
> As far as I can recall you can't do this. However you may be able to use
> the Shell.Application.Windows method to get a reference back to the
> instance of IE that launched it.
>
> --
>
> Joe Fawcett (MVP - XML)
>
> http://joe.fawcett.name
>
> "Tim Williams" <timjwilliams@xxxxxx> wrote in message
> news:utE4Rl30JHA.6004@xxxxxx
>> <A HREF="query\QueryViewer.hta?blah=580">580</A>
>>
>> Just parse out the arguments from the href within the hta.
>>
>> Tim
>>
>> <malo.lexandre@xxxxxx> wrote in message
>> news:0b7acb90-9397-4d4c-82c8-4d25fc5112cb@xxxxxx
>>> Hello,
>>>
>>> I have found you can actualy execute an HTA with some commandline
>>> with the commandLine attribute.
>>> I was wondering if it was possible to lauch an HTA with some arguments
>>> from a web page within IE.
>>>
>>> That would be the command to open the HTA
>>> <A HREF="query\QueryViewer.hta">580</A>
>>>
>>> This actualy work and open the HTA, but it would be really cool if I
>>> could pass arguments >>
>> >
>