how to see the source code in mobile browers

This topic contains 1 reply, has 1 voice, and was last updated by  Alice Jones 1 year, 9 months ago.

  • Author
    Posts
  • #1506 Reply

    shan

    how to see the source code in mobile browsers ?

  • #2976 Reply

    Alice Jones

    The standard way, that works on most browsers, is to right click with the mouse and then select the “View source” option. It won’t work in all scenarios, though. For instance, when you’re using a mobile browser. There’s a trick you can use. It works on Chrome and Firefox, though it could work on other browsers too. You simply need to put “view-source:” on the URL before the domain name. Type that into your browser and it will display the source code directly.
    javascript: alert(document.getElementsByTagName(‘html’)[0].innerHTML);
    Chrome && Firefox (Android)
    view-source:http://domain.com
    You can also try apps available in Google play store or try http://viewsource.in. I hope this helped.

  • Author
    Posts
  • #1506 Reply

    shan

    how to see the source code in mobile browsers ?

  • #2976 Reply

    Alice Jones

    The standard way, that works on most browsers, is to right click with the mouse and then select the “View source” option. It won’t work in all scenarios, though. For instance, when you’re using a mobile browser. There’s a trick you can use. It works on Chrome and Firefox, though it could work on other browsers too. You simply need to put “view-source:” on the URL before the domain name. Type that into your browser and it will display the source code directly.
    javascript: alert(document.getElementsByTagName(‘html’)[0].innerHTML);
    Chrome && Firefox (Android)
    view-source:http://domain.com
    You can also try apps available in Google play store or try http://viewsource.in. I hope this helped.

Reply To: how to see the source code in mobile browers
Your information:




45 − = 41