Created
October 21, 2022 21:17
-
-
Save debdutdeb/f7ce0f753990c543a8b356ca22a3a8d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title></title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<input type='file' style="display: none" id='button' /> | |
<script> | |
const b = document.getElementById('button'); | |
b.addEventListener('change', () => { | |
console.log('changed'); | |
}); | |
function foo() { | |
b.click(); | |
b.click(); | |
} | |
</script> | |
<span onclick="foo()">Click</span> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment