<span id="span1">aa</span><script>
function test(pa)
{
alert(pa);
}
span1.attachEvent("onclick",function(){test("yes")});
</script>
function test(pa)
{
alert(pa);
}
span1.attachEvent("onclick",function(){test("yes")});
</script>
解决方案 »
- 关于file控件上传文件验证的问题?
- Flex的进度条不显示进度⊙﹏⊙
- firefox显示本地文件问题
- 怎么让IE内核的浏览器兼容下面的两个脚本.
- (火急)js 编的页面在一个电脑上无论如何不能出发onclick等事件,IE已经设置的没问题了,是电脑哪里禁用了吗
- 在javascript中,用什么函数能把数字型转换成字符型,急!!!!
- onclick为何不响应
- 请教文本框校验的问题!
- 如何取得textarea
- 还是文件问题
- 再开帖求助:在JS中用resultFrame.document.writeln()写入链接,点击链接调用另一Applet的Query()函数,怎么写好?
- Replace问题,请教高手!
function test(arg)
{
alert(arg);
}
span1.attachEvent("onclick",function(){test('hello,world!')});
</script>
function test()
{
alert(span1.value);
}
span1.value = "Hello World!!";
span1.attachEvent("onclick",test);
</script>