Ads
JavaScript 代码实例
查看JavaScript的代码实例源码, 并使用JS参考的在线编程调试工具
源代码
x
<html>
<head>
<meta charset="utf-8">
<title>开发测试教程(devqa.cn)</title>
<script>
function addBorder(){
document.getElementById("compman").border="2";
}
</script>
</head>
<body>
<img id="compman" src="compman.gif" alt="Computerman" width="107" height="98">
<br><br>
<input type="button" onclick="addBorder()" value="加上边框">
</body>
</html>