[ACCEPTED]-How can I programmatically open the file picker with JavaScript?-google-chrome
Accepted answer
For security reasons you can't trigger the 4 dialog, unless it is as a response to some 3 user triggered event. You could for instance 2 trigger the dialog through a click on some 1 other element:
$(function () {
$(".someElement").click(function () {
$('#f').click();
});
});
As a security measure, you can only open 3 such dialogs on an user input, such as a 2 click event (on whatever element). You cannot 1 open it randomly such as on page load.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.