The code below prints a button as shown. The buttons work in all browsers except IE. How can i add javascript on it?
print "<td>" ."<a href='advancedview.php?id=$uniqueid' STYLE='text-decoration: none'><input type='Button' value='More Details' style='width:100%;height:30%'> </a>". "</td>";
I tried ...onClick='advancedview.php?id=$uniqueid'
but its not workin on ie. Thanks
A buttons onclick event parses javascript, so if you'd like to change the location you set window.location
echo "<td><input type=\"Button\" onclick=\"window.location='advancedview.php?id=".$uniqueid."'\" value=\"More Details\" style=\"width:100%;height:30%\"></td>";