阅读:4732回复:3
firefox 兼容性的问题<input type="file" id="file"> <input type="button" id="aaa" onClick="set()" value="button"> <script> function set(){ var file = document.getElementById("file"); var aaa= document.getElementById("aaa"); aaa.onclick = file.click(); } </script> 为什么这段代码在firefox下不能运行呢??请高手指点!!! |
|
1楼#
发布于:2007-01-31 15:30
aaa.onclick == file.click();
改成这样也是不行的!!! |
|