View Page Source — For iOS!

One of the frustrations for me, being a coder and all that, is the inability to “View Page Source” of a website from my iPad. Today I’m going to show you how to fix this annoying issue — legally and completely for free, no hacking, jail breaking, or anything similar involved. It’s as simple as copy + paste!

Step 1: Go to any website, any website at all. For this demonstration I’m using Google.


Step 2: Bookmark whatever website you’re using.

Bookmark Website

Step 3: As you bookmark the site, delete the name and change it to, “Show Page Source.”

Change Name

Step 4: Once you’ve saved the bookmark, go to your bookmarks tab and tap “Edit.”

Tap Edit

Step 5: Tap on your “Show Page Source” bookmark. Delete the URL and paste in the following:


(Be sure to copy the “javascript:” part!)
Then tap “Done.”

Paste In JavaScript

Step 6: Now you’ve saved the bookmark with this special JavaScript URL. Now go to any website (it can be the same as the one you used for the bookmark or different, it doesn’t matter). I’m going to use my website for this one.

Handz Studioz

Step 7: Go to your bookmarks and tap on the “Show Page Source” bookmark.

Tap Bookmark

Safari will open a new tab with the page source for whatever site you are currently on when you tap the bookmark.

View Source

So now you’re done. You only have to do this one time. From now on when you want to view the source of a page, simply visit the website and click on your “Show Page Source” bookmark.

Thanks for visiting Handz Studioz and be sure to follow to be notified of future posts! Check out the External Links section (below) if you want to see the site where I first heard about this tip!

-The Editor.

External Links and Credits:
JavaScript credit: Rob Flaherty
Original tutorial: