ie6bug,element name 与 id不能相同
window.onload = function(){
var bn = document.getElementById('btn');
bn.onclick = function(){
var target = document.getElementById('target');
alert(target.innerHTML);
}
}
var bn = document.getElementById('btn');
bn.onclick = function(){
var target = document.getElementById('target');
alert(target.innerHTML);
}
}