编辑您的代码:
查看结果:
<html> <head> <script type="text/javascript"> function alertAxis() { alert(document.getElementById('td3').axis); } </script> </head> <body> <table border="1"> <tr> <th>Firstname</th> <th>Lastname</th> <th>City</th> </tr> <tr> <td id="td1">Harry</td> <td id="td2">Potter</td> <td id="td3" axis="location">NY</td> </tr> <tr> <td id="td4">Peter</td> <td id="td5">Griffin</td> <td id="td6" axis="location">Las Vegas</td> </tr> </table> <br /> <input type="button" onclick="alertAxis()" value="Alert axis" /> </body> </html>
查看结果:
系统帮助
|
给我留言
|
收藏本站
Copyright © 2005-2008
www.cnn84.com
All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南
中午好!还在浏览生活信息吗?CNN84提醒您别忘了午饭哦