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:
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>")
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)