I have a javascript and html code .In which I am browsing the file and simply I am showing the path of file after click on button

code is running proper in IE but not in mozilla

-----------------------------
Code:
<html>
<head>
<script>
function setName()
{
var path = document.forms[0].elements["sig"].value;	
alert("path		" + path);
}
</script>
...