Refresh in javascript?

Hi,

i would like to simulate the command :

@command([viewrefreshFields]) in javascript .

i wrote this code in the onLoad events of my form but it doesn’t work :

document.forms[0].field1.value=“yes”;

document.forms[0].field2.value=“0”;

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

the fields are not modified and the form isn’t refreshed, why ?.

Subject: refresh in javascript ?

the onLoad event triggers before the page is completely loaded. put your script on the bottom of your form into a rangeDon

Subject: RE: refresh in javascript ?

i am a novice in HTML, how do i do that ?

Subject: RE: refresh in javascript ?

At the bottom of your form, add the following tags:

and mark those tags as “Pass-through HTML” (in the Text menu).

Don

Subject: RE: refresh in javascript ?

thanks Don for your help.