Notes & Javascript Object Model cross ref

Launching a url HTML Form from a Lotus Notes Dialog Form(like input dialog box) using @DialogBox and grabbing a field value from the HTML form and paste it back to the Notes Dialog Form Field.Is this can be done?Should I to use Javascript for this?

Can someone please give some idea?

i.e. onClick=‘NotesDialogFom.document.Formname.Fieldname.value=IceWindow.document.IceFormName.IceFieldName.value’

Actually the note form is Layout based form acting as Dialogbox and Ice is HTML form on different server.

Thanks in advance