How To View Page Source On Safari In An iPhone or iPad

Some users from time to time have a need to view page source of certain websites. However, mobile Safari i.e. the default browser for iPhone and iPad does not include the feature to view page source. However, there is a bookmarklet that can enable you to view source of any webpage from an iPhone or iPad. The bookmarklet has been created by In this article we will explain how to view page source on Safari in an iPhone or iPad.


How To View Page Source On Safari In An iPhone or iPad

In order to view page source on Safari in an iPhone or iPad, perform the following steps:

  • Bookmark this page or any other page on Mobile Safari in iPhone or iPad and rename it to be ‘View Source’.
  • The bookmarklet is available on this link. View it and select the entire javascript.
  • Tap on the bookmark icon in Safari and tap ‘Edit’.
  • Tap on the bookmark that you saved in the first step.
  • Paste the javascript code from the second step into the URL bar and tapping ‘Done’.
  • Whenever you want to view the source of a web page, open the Bookmarks menu and tap on the ‘View Source’ bookmark. This will enable you to see the source code in highlighted syntax along with source urls that you can click on.

The only caveat in this entire process is that whenever you click on view source the page is sent to server for processing. This will normally not be a problem, however, if you want to protect your privacy you can try out some other mechanisms.

via osxdaily

About Bilal Hameed

Posted on May 17, 2012, in Apple, iOS, iPad, iPhone and tagged , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

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

You are commenting using your 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 )

Google+ photo

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

Connecting to %s


Get every new post delivered to your Inbox.

Join 249 other followers

%d bloggers like this: