Web Page Source Code in Android

Web Page Source Code in Android

Almost every desktop browser has the “View Page Source” option. But when you browse the Web with an Android device it might be difficult to realize how to read the source code of a page. However there are several easy ways to do so. In this article we will explain how to view HTML source of a page with different browsers.

View Page Source inside Android Browser
View Web Page Source using Android Browser
View Web Page Source using Android Browser

1. Open Android Browser.
2. Enter the URL of a website.
3. Type the following string in the URL address bar:

javascript: alert(document.getElementsByTagName(‘html’)[0].innerHTML);

then tag “Go” button. Remember that JavaScript code is case sensitive!

Source code will be shown in a popup message window in plain text, without formatting.

View Page Source inside Chrome or Firefox Browser
View Web Page Source using Chrome or Firefox Browser
View Web Page Source using Chrome or Firefox Browser

To view the source code of a web page using Chrome or Firefox for Android browsers do as follows:
1. Open Chrome or Firefox browser.
2. Enter the URL of the website.
3. Tap the URL address bar at the top of the browser app.
4. Type at the beginning of the URL:

view-source:

(e.g. view-source:http://xslab.com/). Then tap “Go” button.

View Page Source inside Opera Mini Browser
View Web Page Source using Opera Mini
View Web Page Source using Opera Mini

1. Open Opera Mini web browser.
2. Enter the URL of the website, wait for the site to load.
3. In the URL address bar type:

server:source

then tap “Go” button.

VT View Source Application
APPLICATION
VT View Source
DEVELOPER
Vagharshak Tozalakyan
REVIEWED VERSION
1.8.1
PRICE
Free!
VT View Source Screenshot

VT View Source is a free application that allows you to view HTML, CSS, JavaScript and XML source codes or remotely located files.

You can open web page with VT View Source by typing the URL address directly in the application, or by using “Share page” functionality within your browser.

VT View Source has an adjustable interface and it comes with multiple syntax highlighting themes. Other application features include line numbering, text wrapping, and User Agent switching.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.