I have an HTML page with a text box. When you click on the text field, a pop-up window appears, and after clicking the "OK" button, the pop-up window should be closed, and the text field on the first html page should be filled with the value specified in the second HTML. I tried something like this,
one.html
<form name="form1" >
<input type="text" name="source" onclick="window.open('second.html')" />
</form>
second.html
<input type="button" onclick="{document.form1.source.value='hello';window.close()}" />
source
share