By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,625 Members | 1,448 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,625 IT Pros & Developers. It's quick & easy.

problem in showing the path after browsing the file in mozilla

P: 1
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

-----------------------------
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <script>
  4. function setName()
  5. {
  6. var path = document.forms[0].elements["sig"].value;    
  7. alert("path        " + path);
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <form onsubmit="return false;" target="_top" method="POST" name="signForm" enctype="multipart/form-data">
  13. <table border="0" width="100%" cellpadding="0" cellspacing="0">
  14. <tr>
  15. <td><Input type="file" name="sig" style="font-family: Arial;" size="25px" ></td>
  16. </tr>
  17. <tr>
  18. <td width="15%"><Input type="submit" value="  Sign  "  onclick="setName();  return false;"></td>
  19. </tr>
  20. </table>
  21. </form>
  22. </body>
  23. <html>
  24.  
--------------------------

Please help me in this, I will be thankful
Jan 31 '12 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
This is a browser setting. You can probably set it on an individual browser, but not through code. The exception may be in a special privileged environment.
Feb 1 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.