How to set control value of Iframe from parent page in javascript

We set control value of Iframe from parent page in javascript by given code
.
parent.frmEditBiopsy1.form1.txtSubjective.value = 'sdfsdfsd';

txtSubjective is the textbox inside iframe.
frmEditBiopsy1 is the id of Iframe.

Comments