0

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

4

1 に答える 1

0

ボタンの onclick イベントは JavaScript を解析するので、位置を変更したい場合は window.location を設定します

echo "<td><input type=\"Button\" onclick=\"window.location='advancedview.php?id=".$uniqueid."'\" value=\"More Details\" style=\"width:100%;height:30%\"></td>";
于 2013-02-24T09:59:18.463 に答える