Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View html code for a webpage on Tablets

Like all Internet browsers allow users to view the HTML or other source code of any of the web pages they visit. All you need to do is view source code and there you go. I am currently using an Android Tablet on the Paypal website and wondered if there is a way to look up the code for it. The paypal website offers the pop-up screen on the top of the page saying download Android App. I want to know how to add this feature on my site.

like image 785
Jeevs Avatar asked Jul 15 '11 10:07

Jeevs


People also ask

How can I see HTML code in mobile?

Steps to view source codeVisit the website which you want to view it's source code. Click inside the address bar and append view-source: before the url of the website. Click the send button and the page will load with the source code of the file.

How do I view the HTML code of a web page in Safari on iPad?

View Source Code in SafariOpen Safari. Navigate to the web page you would like to examine. Select the Develop menu in the top menu bar. Select the Show Page Source option to open a text window with the HTML source of the page.


2 Answers

Use this for Android Default Web Browser:

javascript:alert(document.documentElement.innerHTML);

And this for Android Google Chrome Browser:

view-source:http://www.yoursite.com
like image 196
icaneatclouds Avatar answered Oct 10 '22 03:10

icaneatclouds


I haven't found any view-source option on the default browser, but you can enter this into the url field to view source:

javascript:alert(document.documentElement.innerHTML);

You can change the user agent by entering "about:debug" in the location bar, then going to Settings - UAString.

Chrome, Firefox, Safari and Opera mobile browsers have the ability to be inspected though their desktop counterparts.

like image 21
NoBugs Avatar answered Oct 10 '22 05:10

NoBugs