View html code for webpage on tablets

Like all Internet browsers, users can view the HTML or other source code of any of the web pages they visit. All you have to do is view the source code and there you go. I am currently using an Android tablet on the Paypal website and wondering if there is a way to find the code for it. The PayPal website offers a pop-up at the top of the page that tells you to download the Android app. I want to know how to add this feature to my website.

+5
source share
6 answers

Use this for the default Android browser:

javascript:alert(document.documentElement.innerHTML);

And this is for Android Google Chrome Browser:

view-source:http://www.yoursite.com
+10

, url :

javascript:alert(document.documentElement.innerHTML);

, "about: debug" , "" - UAString.

Chrome, Firefox, Safari Opera .

+4

.

Google Play ( ) -. Jamens Obrien - , " ".

, , Android. , Firefox, Chrome, Dolphin Opera Mobile, " ", " -".

, URL- HTML- .

, . .

+2

,
javascript:var s=document.documentElement.outerHTML;var w=window.open();w.document.body.innerHTML=s.replace(/</g,"&lt;").replace(/>/g,"&gt;<br/>");w.document.close() >

+1

You can also prefix any URL you visit with "view-source:" (without quotes), for example. view-source: http: //www.http: //example.com

0
source

All Articles