I recently got an iPhone. But this isn’t the typical post of how great and wonderful an iPhone is, why you should get one, and so on and so forth. This post is much more practical than that.
In the course of using my new iPhone I had the need to view the source of a web page. Doesn’t matter what page it was or why I wanted to view the source. I just needed to.
So there I am, mobile safari running, my web page displayed…and now what? I couldn’t believe there wasn’t any way to view the source. I looked through every mobile safari option to no avail – there is no way to view the source.
To the interwebs! And as you’d imagine, this problem has been solved. The following site explains what you need to do:
If you normally sync your browser bookmarks to your iPhone then that’s it! You’re done!
But I don’t, for a variety of reasons which we don’t need to go into here. So am I stuck? Of course not! Here’s the steps you need to follow:
- Open mobile safari
- Navigate to a site, any site
- Tap ‘Add Bookmark’
- Enter ‘View Source’ for the bookmark name
- Tap ‘Done’
- Bring up the bookmarks
- Tap the ‘Edit’ button
- Tap the ‘View Source’ bookmark you just added
- Delete the existing URL
Now when you want to view the source of a web page on mobile safari, just bring up your bookmarks and tap the ‘View Source’ bookmark. It’ll open a new page containing the source of the current page. Simple!