code is running proper in IE but not in mozilla
-----------------------------
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <script>
- function setName()
- {
- var path = document.forms[0].elements["sig"].value;
- alert("path " + path);
- }
- </script>
- </head>
- <body>
- <form onsubmit="return false;" target="_top" method="POST" name="signForm" enctype="multipart/form-data">
- <table border="0" width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td><Input type="file" name="sig" style="font-family: Arial;" size="25px" ></td>
- </tr>
- <tr>
- <td width="15%"><Input type="submit" value=" Sign " onclick="setName(); return false;"></td>
- </tr>
- </table>
- </form>
- </body>
- <html>
Please help me in this, I will be thankful