Is there a way to view the source HTML in the Android web browser?
Create a new bookmark (bookmarklet) on Mobile Chrome with:
Name: View Source (vs)
Now when on a page, tap the address field and start typing: vs. The bookmarklet should appear, click it and you are ready.
If this is for debugging (from your comment it looks like it is) something even better is installing a user agent switcher extension for Firefox or Chrome on your desktop. Change the user agent to Android and you get the mobile version of the site, but with all the source and debugging tools you're used to.
you can capture the source to your shell or to a text file if you're using an emulator, which is very handy for development. To do this you'll need to install Android Developer Tools, which comes with adb. Fire up your emulator then from your OS's shell run the command:
adb logcat browser:V *:S
This will output everything within your html tag on the page to the log.
You can capture the output of your log (using BASH, at least, I can't speak to other shells) with:
adb logcat browser:V *:S > log.txt
now, any output from the log gets dumped into your log.txt file. This is really handy for a whole page's worth of HTML, as you can then search through it as you would any other text doc.
If you want to grab a specific bit of the page rather than the whole thing, you can specify that part of the page rather than the html tag in your JQuery, so if you need to look at a single div that has a class/id associated with it (for this example, it has a class named 'inspect-me'), you can change your JQuery to:
If you want to view source of Android browser page, or inspect page you can use this https://developer.chrome.com/devtools/docs/remote-debugging Its very good inspector
protected by Community♦ Dec 27 '14 at 20:16
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?