i create table who has link to post data, then if the link clicked, it will open in new window with the size we want.
here's the code :
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['PONumber'] . "</td>";
echo "<td>" . $row['POdate'] . "</td>";
echo "<td>" . $row['customername'] . "</td>";
echo "<td>" . $row['description'] . "</td>";
echo "<td>" . $row['poqty'] . "</td>";
echo "<td>" . $row['TotalQtySpb'] . "</td>";
echo "<td>" . $row['OTSPO'] . "</td>";?>
<td><?php echo('<a href="index.php?action&ponumber='.$row['PONumber'].'" target="_blank">'."Klik Disini".'</a>');?></td><?php
echo "</tr>";
}
i tried to modify open in new window by add target="_blank" in a href but its not working (opened in new tab instead in new window)..
tried javascript like this but didnt understand how to apply it in table.
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
window.open("http://www.w3schools.com","","width=900,height=300,top=100,left=100" );
}
</script>
target="_blank"shouldn't work - charlietflwindow.openand prevent the default click opening new tab - charlietfl