This is impossible, as it is a security risk to let website code set any value on the machine.
Also, you can never be sure that directory exists.
What if I’m on a Mac? My stuff are in ~/Pictures
. What if I installed Windows on D:\
?
More Related Contents:
- How do I access the link to the content? [closed]
- javascript “if” statement returning false value when both values are equal
- What is the max size of localStorage values?
- How to detect if JavaScript is disabled?
- How to get the body’s content of an iframe in Javascript?
- How to get an HTML element’s style values in javascript?
- Detect all changes to a (immediately) using JQuery
- How to set an iframe src attribute from a variable in AngularJS
- When should I use Inline vs. External Javascript?
- Using HTML5/JavaScript to generate and save a file
- Disable form auto submit on button click
- Input placeholders for Internet Explorer
- Resize event for textarea?
- Pass vars to JavaScript via the SRC attribute
- Get caret position in HTML input?
- Why should y.innerHTML = x.innerHTML; be avoided?
- HTML input type=file, get the image before submitting the form
- Scroll with anchor without # in URL
- jQuery: how to change tag name?
- Adding images in JSfiddle [closed]
- How do I put codes from jsfiddle.net into my website?
- How to create new instance of an extended class of custom elements
- How can I get an element’s ID value with JavaScript?
- How can I request an increase to the HTML5 localstorage size on iPad, like the FT web app does?
- Convert dropdown to selection boxes with color and trigger drop down action
- Javascript click event handler – how do I get the reference to the clicked item?
- copying the value of a form’s file input field to another form’s input field
- How can I fix Highcharts error #13?
- How to delete an HTML element inside a div with attribute contentEditable?
- Bootstrap Dropdown menu is not working