I have a main html page which has a text input field and iframe in it .

I would like to be able to click a link in the iframe and and have the input text box value change to the value of a variable called selectedText.

Im not sure how to get it to work . I have been able to get it to work only from the main page by using this :

```
newListNote.value = selectedText;

```