Browse button styling
Posted: Tue Jun 30, 2009 7:33 am
Hi,
I used the below code to upload file form.
Its working in IE6.
But its not working in mozilla.
Is there any other way to do this.
I used the below code to upload file form.
Code: Select all
<script type="text/javascript">
function test()
{
document.form1.browse1.click();
alert("dasdas");
}
</script>
<form name="form1" action="#" method="post">
<input name="browse1" type="file" style="display: none;">
<input name="file" type="text">
<input name="Submit" type="button" value="Browse" onClick="test(); document.form1.file.value=document.form1.browse1.value; return false;">
<input name="upload" type="submit" value="Upload" onclick='document.form1.browse1.disabled=true;'>
</form>But its not working in mozilla.
Is there any other way to do this.