Window.open in a table cell
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="window.open(this.href, 'child', 'scrollbars, width=650, height=600'); return false">Button</a>")
document.write("</td></tr></table>")
</script>
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.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks