下面的代碼打印一個按鈕,如圖所示。這些按鈕適用於除IE以外的所有瀏覽器。我怎樣才能在其上添加JavaScript?在php生成的按鈕中的JavaScript
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>";
我試過... onClick='advancedview.php?id=$uniqueid'
但它不工作在即。由於
我不知道它是怎麼在其他瀏覽器...! – 2013-02-24 09:56:13
Err什麼代碼? – craig1231 2013-02-24 09:57:02
不工作,點擊按鈕時沒有任何反應? – 2013-02-24 09:57:16