随笔-5  评论-0  文章-0  trackbacks-0
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<head>
<title>Sample2.1.1</title>
<style type="text/css">
    .parent{width:350px;height:300px;background-color:red;}
    .child{width:150px;height:100px;background-color:blue;}
</style>

</head>

<body>
<input id="aaa" type="text" />&nbsp;&nbsp;<input type="radio" name="myradio" value="0"> 男<input type="radio" name="myradio" value="1"> 女 <br>
<input type="checkbox"  name="checkbox" value="1"><br>
<input type="button"  id="bbb"  value="按我" onclick="check();"/>

</body>
</html>

<script>

function check(){
var o=document.getElementById("bbb");
alert(o.value);

}

</script>


//1. 找出所有"input type="" 的类型,自己动手做例子。

//2. 用javascript 的alert 打出他们的输入值。
posted on 2008-12-21 21:51 ..゛緣々ゞ 阅读(98) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。