You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Another security feature.
You have to remove the element completely and re-insert it using the DOM.
Alternatively reset the form but then you will lose all other entere data.
I was to do the same job(remove and insert it again)
I have never thought about what security problem would arise if this element could be set via
javascript.But it would be nice if it had some reset method, Since I don't see any security
issue in resetting the field.
thank you...
Well if you could set the value you could programatically submit the form and upload a file without the user knowing. I also fail to see how a reset method could be abused.