hcl-bot
1
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?
hcl-bot
2
Subject: Location.top
Do you mean ‘not’ working??
hcl-bot
3
Subject: Location.top
How about this?
window.open(top.location + “/MainMenu?Openform”);
hcl-bot
4
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.
hcl-bot
5
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).
hcl-bot
6
Subject: RE: Location.top
Thant seems to have worked,
thanks alot mate