That's fooling the browser, or trying to. It will fail in FF and others. The only way to be relatively sure that you can close a window with javascript is to have opened it with javascript:
Code:
<a href="austin.html" target="_blank"
onclick="window.open(this.href,this.target);return false;">Robert Austin</a>
Then on austin.htm:
Code:
<script type="text/javascript">
document.write('<input type="button" value="Close this window" onclick="window.opener=self;window.close();">');
</script>
Using document.write makes it so that only browsers that can use the button will see the button. It could be refined a little more by testing to see if the page was actually open by javascript, but that's a little complicated to do cross browser, and even if it wasn't opened by javascript, many browsers will still comply. At the least, you will get a confirmation and option to close. But, if the page was gotten to from a link like in the first code block, virtually all browsers will accept the close.
Bookmarks