I had written a custom HTML/javascript application and wanted to run it in a android browser on my Redmi Note4.

Firstly I activated javascript in all the browsers (MIUI default browser,chrome,firefox).Then,I tried opening the file directly from the file manager,but it only loaded html but not javascript.

Afterthat ,I pasted the file path


in the browser but even in this case only html was recognised but not javascript.However as seen from this forum thread here,this solution has worked on other phones. Is there any way to detect javascript in MIUI10 OS?


Apparently,the Redminote4 file manager doesn't recognise the link between separate html/css/javascript files(even though it get's perfectly recognised in a desktop environment).

The only option left is to embed all your html/css/javascript code into one large html file(not a good practise!) and open this file directly from the file manager.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.