CODE
function popupwindow()
{
var window_open = window.open('childwindow.html','venderfindwindow','width=1000,height=700');
}
</script>
<form name="productCode">
<input type="text" name="Vender1" id="Vender1" width="45">
<input type="button" value="Find" onClick=popupwindow(); return false;")
</form>
CODE
<form name="vederlookup">
<input type="text" value="" name="Vender1" size="5"></td></tr>
<a href="javascript: doStuff('this');">close</a>
</form>
function doStuff(findItem){ window.opener.document.getElementById('Vender1').value=findItem;
window.close();
}
The above worked as expected. However, when I change the second file like this it does not close the window or communicate to the parent window. I wonder what am I doing wrong?
CODE
<form name="venderlookup">
<input name="searchtext" value=""><input type="submit" value="Search" onClick='goSearch()';>
</form>
<script language="JavaScript">
function goSearch() {
document.write("hello world!");
document.write('<form name="form1">');
document.write('<a href="javascript: doStuff("this");">close</a>');
document.write('</form>');
}
The last example does not close the window. Could you do like this" document.write('<a href="javascript: doStuff("this");">close</a>');"
Also, when I call my function goSearch() it takes removes the form from the screen and just shows the output of the function. Is it possible to continue to view the form without using frames?

