2

I have an offline saved htm web page on sdcard to test Javascript. The default render on my phone seems to be HTML Viewer. But when I tried to open the page, the code didn't run. I know this because there's some html tag in the page I was added to detect this:

<script type="text/javascript"> /* my Javascripts */ </script>
<noscript> The current browser can't run Javascript. </noscript>

which displays on the page: "The current browser can't run Javascript."

So how can I enable Javascript in HTML Viewer? Both Opera and Browser are somehow can't found out the file when I typed in the address textbox:

file://localhost/sdcard/page.htm

The problem exist on almost any phone. But the later just works on some of my phone. Another not.

tvc
  • 121
  • 1
  • 1
  • 3

1 Answers1

0

HTML Viewer is part of Android OS and i felt it has no javascript engine, just HTML Viewer not HTML Browser.

Try to access it to your browser

file:///sdcard/yourfile.html

RizonBarns
  • 101
  • 1