Javascript Save and Close?

Is there a Javascript equivalent to:

@Do(@Command([FileSave]); @Command([FileCloseWindow]));

I want to put this in a button in a form on the web and it seems my only option is Javascript ( Button OnClick Web)

Please excuse my Javascript ignorance - Thanks

Subject: submit()

Subject: RE: submit()

Thanks Lawrence - just what i was looking for. Knew it had to be something simple, but didn’t think it was THAT simple!

Subject: Javascript Save and Close?

No, @Command([FileSave]); @Command([FileCloseWindow]) works quite nicely.