Launching a url from a form and grabbing a field value n paste to

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

Can someone give some idea?

i.e. onClick=‘NotesFom.document.Fornname.Fieldname.value=IceWindow.document.IceFormName.IceFieldName.value’

Actually the note form is Layout based form acting as Dialogbox.

Thanks in advance