TIA
Jon
<html>
<script language="vbscript">
moveto 75,75
resizeto 640,480
</script>
<head>
<title>test hta</title>
<hta:application
id="ohta" applicationname="testhta"
singleinstance="yes" windowstate="normal"
caption="yes" showintaskbar="yes"
sysmenu="yes" scroll="yes"
/>
<script language="vbscript">
sub dotest()
msgbox "document.location.pathname=" _
& document.location.pathname
msgbox "window.location.pathname=" _
& window.location.pathname
msgbox "top.location.pathname=" _
& top.location.pathname
end sub
</script>
</head>
<body>
<input type="button" value="do test"
onclick="vbscript:call dotest()">
<pre id=output></pre>
</body>
</html>
--
Michael Harris
Microsoft.MVP.Scripting
Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
Jon
"Michael Harris (MVP)" <mik...@mvps.org> wrote in message
news:u5KOgbCn...@tk2msftngp13.phx.gbl...
See also:
HTA:APPLICATION
commandLine Property (HTA:APPLICATION) (Internet Explorer)
http://msdn.microsoft.com/workshop/author/hta/reference/properties/commandline.asp
--
Michael Harris
Microsoft.MVP.Scripting