德能勤绩廉方面:input事件

来源:百度文库 编辑:中科新闻网 时间:2024/04/30 22:43:29
<form action=?action=showmdb method=post name=form1>
<input name=fileurl type=text value="">
<div style="display:none"><input type=file name=f onchange="fileurl.value=this.value;"></div>
<input type=button name=v value="浏览..." onclick="">
</form>

怎样才能在点击 v 按钮的时候,即等于点击 f 文件域的“浏览...”?
应该怎样写 按钮V 的 onclick 过程?

.

<input type=button name=v value="浏览..." onClick="JavaScript:document.form1.f.click();">

哈哈,这个我会,找我
QQ307906490