Save a document with JavaScript

i am writing an application for web, i need save a document with javascript how can i do it? thanks…

Subject: Save a document with JavaScript

At the bottom of your form place the following code and insert a hotspot button called saveButton with the formula below.

hotspot button here

Formula:

@If(

@Command([FileSave]);

@Command([FileCloseWindow]);

@Return(“”)

)

Place a graphic on the form and add the following javascript to a onclick event calling

onclick=“javascript:document.forms[0].saveButton.click();”

This should cause the saveButton to execute it’s formula

Subject: Save a document with JavaScript

See here:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/6f93b5a78e8fddd385256fa900593f70?OpenDocument