I have 2 windows home.html and result.html.
home.html
result.html
In home.html I have a #txtinput and a <
<
i think that a simple assignment, using the window.opener handle from within the child window, is what you need:
if (window.opener) document.getElementById("#txtresult").value = window.opener.document.getElementById("#txtinput").value;