Well, your scriptlet, as is, would execute as soon as the page it is on parses it. You probably have it, or would want to have it, as a function activated onclick or on some event on the page. Second, reloading a page will generally get you that page as it is written, without any updated information. If all you want to do is update information on the opener, simply access or create an element on it, adding the new information:
Code:
<script type="text/javascript">
function updateOpener(){
var box=opener.document.createElement('input')
box.type='text'
box.value='new employee'
opener.document.body.appendChild(box)
self.close()
}
</script>
HTML Code:
<input type="button" value="Update" onclick="updateOpener();">
Bookmarks