Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<body>
<input id="target" type="file" />
<script type="text/javascript">
window.onload = function() {
// Activate the page to allow opening the file picker.
SpecialPowers.wrap(document).notifyUserGestureActivation();
var fileInput = document.getElementById("target");
fileInput.click();
};
</script>
</body>
</html>