How to refresh document on Web?

In postopen event on client application i have some code to refresh document such as :

@Command([RefreshHideFormulas]);

@Command([EditDocument];“1”);

@Command([ViewRefreshFields])

so my qns is—>

what could be the alternative for the web application as there is no postopen event for web application and what i have to write to refresh ??

MR. Litty joseph suggested me the following…i have pasted it in javascript header .But then where i have to call the following function??..

function refresh(){

// Emulates refresh on keyword change.

// Call to retain field values while recalculating form.

if( window.document.forms[0].name == “” ) {

// read mode

window.location.reload(true);

return false;

}

else{

// edit mode

_doClick(‘$Refresh’, this, null, null);

return false;

}

}

Thanks & Regards

Rupesh

Subject: how to refresh document on Web?

Whatever has to be done before a document is opened, is best done in a WebQueryOpen document on the web. “Refreshing” the document in a browser window is not directly comparable to the Notes client.

But the first question would be, why did you have to add that code to the Notes form at all?