Hello I have difficulties making the .Click() command work on all browsers, it does work on IE, but not in FF, Chrome.
SCENARIO: Unity project, scene has a button inside of it. when the button is pressed, A javascript function is called.
Inside that function I have document.getElementById("file").click();
WHAT I AM TRYING TO DO:
when the javascript function is called, i need to open a local file-browser dialogue
( <input id="file" type="file">
)
pressing a button and calling "file" works on all browsers. but trying to call a click command on type does not seems to work in FF, Chrome. Is there any alternatives? any work around? Thanks.
JUST TO CLARIFY, THERE IS NO USER INPUT ON THE WEBPAGE, the only thing i get is a javascript function that gets called inside html.