<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>javascirpt1</title>
<script>
window.onload=function ()
{
var oBtn1=document.getElementById('btn1');
var aCh=document.getElementById('ipu');

oBtn1.onclick=function ()
{
aCh.checked=true;
};
};
</script>
</head><body>
<input id="btn1" type="button" value="选中"><br>
<input id="ipu" type="checkbox"><br>

</body>
</html>