Javascript error - is null or not an object when clicking return button

Hi All,

I am getting javascript error when I click return button.

Error: ‘window.parent.FrameTop.document.forms.0.Go’ is null or not an object

I have a button Go which calls a function.

Any suggestions would be appreciated. Thanks in advance.

Subject: Javascript error - is null or not an object when clicking return button

try :window.parent.FrameTop.document.forms[0].Go

Subject: RE: Javascript error - is null or not an object when clicking return button

This is what I have in my $$Return field…Str := @If(ref=“true”;“window.top.location.reload();”;TH=“1”;“window.top.location=‘/db.nsf’;”;“window.parent.FrameTop.document.forms[0].Go.click();”);

@Return(“

Thank you, “+ @Name([CN];@UserName) +”. Your document has been processed.


”+

“<INPUT TYPE=button onClick="”+Str+“" VALUE="Return">”)

Any suggestions would be appreciated. Thanks in advance

Subject: RE: Javascript error - is null or not an object when clicking return button

You cant use window.document.forms[0] in a $$Return field. Use WebQuerySave and LotusScript