I am trying to insert a button in a table cell that when clicked, it opens a popup window. However, I am only able to get it to open in the same window or new window. The basic test script:

<script language="JavaScript" type="text/javascript">
document.write("<table width=50% border='1'><tr height='30'><td>")
document.write("<a href=test.htm onclick=&quot;window.open(this.href, 'child', 'scrollbars, width=650, height=600'); return false&quot;>Button</a>")

The reason being that my page will be built using an Array and if a condition is met, a button for a popup will appear.