Location.top

I have written some JavaScript to run, only problem is that I am using the command-

window.open(location.top+“/MainMenu?Openform”);

to open a new window (Which works) and go to the main menu Page in the new window.

For some reason this command is now working.

Any clues?

Subject: Location.top

Do you mean ‘not’ working??

Subject: Location.top

How about this?

window.open(top.location + “/MainMenu?Openform”);

Subject: Location.top

I have tried the top.location aswell and it still doesn’t work.

When it opens the new window it is opening it from:-

http://jjs.AddTest.nsf/MMenu?OpenForm

with the new address of:-

http://jjs.AddTest.nsf/MMenu?OpenFormNo1?OpenForm

As you can see it is adding the new line on the end of the old line of the address.

Subject: RE: Location.top

How about this:

window.open(“MainMenu?Openform”);

(Note that the leading “/” has been removed, which should make the browser look for the form relative to the nsf file).

Subject: RE: Location.top

Thant seems to have worked,

thanks alot mate