Hi
Thanks for your reply it has given me something to look at this weekend.
Yes it is as I describe the OS will be windows XP Pro and as such you can
run .JS files directly! but I guess once the HTML is open the same commands
may work!
I'm out tomorrow so I will try what you suggest over the weekend and let you
know how it goes
Thanks for your help
"Joakim Braun" <joakim.braun@jfbraun.removethis.com> wrote in message
news:83NKe.23840$hV3.8845@nntpserver.swip.net...
> In a Web context, which is all I know anything about, js files are not
> standalone programs. They're loaded into HTML pages and executed there as
> if
> the code they contain were a part of that HTML page. Where not blocked by
> "popup blocker" software the "included" js code can then open other
> windows,
> which in turn may call code in the originating window (for instance, to
> tell
> it they're being closed, though this can't be done reliably).
>
> For instance, the window opening code you describe might be written as:
>
> window.open("test.html?this_is/atest");
>
> In test.html, the URL is accessible through the window.location object,
> and
> the query component of the URL (the part after the "?") is in
> window.location.search. The writing code might then look like:
>
> document.write(window.location.search);
>
> If your needs are strictly what you describe, you might also want to take
> a
> look at whatever platform-specific system-level scripting software is
> available to you.
>
> --
> Joakim Braun
>
>
> "Adrian" <Adrian@nospamhotmail.com.uk> skrev i meddelandet
> news:ddg32c$drs$1@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
>> Hi,
>> Two questions!
>>
>> 1. I have an HTML file on a local harddisk and I want to open it from
>> another local .js file passing it a string for it to read and display
>> e.g.
>> test.html?this_is/atest so how do I do all of that?!
>>
>> 2. from the JS file that called the above I want to know when test.html
> has
>> closed or been closed?
>>
>> Is this all possible and if so how?
>>
>> thanks
>>
>>
>
>
Received on Tue Oct 18 03:07:50 2005