Window.close() not working on the web using Javascript

Hi All,

I have an Lotus Script agent that opens up another window using JavaScript and HTML …When I submit the Form, agent , JavaScript with HTML opens up another Form called Than You Form which is a NotesForm and this Form has a Close button and the code in the close button is window.close() and is not working …Please help,

What code I need to put in the close button…I also tried top.window.close() and this is alos not working.

Thanks ,

carol C

Subject: window.close() not working on the web using Javascript

Can you post your code here? Both the opener code and the code that generates the .close() method? Also, did you try using self.close() in your button/link?

Subject: window.close() not working on the web using Javascript

Do you have a semi-colon after you javascript? That’s the only thing I can think of since your javascript is correct.